{
  "schema_version": "1.0.0",
  "id": "partner-referral-to-deal",
  "title": "Turn a partner referral into a HubSpot deal",
  "category": "lead-gen-crm",
  "difficulty": "intermediate",
  "featured": false,
  "description": "Create the referred contact and a deal credited to the partner from a referral form, then email the partner a thank-you.",
  "tags": [
    "referrals",
    "partners",
    "hubspot",
    "google-forms",
    "gmail"
  ],
  "apps": [
    "Google Forms",
    "HubSpot",
    "Gmail"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger"
    ]
  },
  "tasks": {
    "typical": 3,
    "max": 3
  },
  "trigger": {
    "app": "Google Forms",
    "event": "New Form Response",
    "kind": "polling",
    "title": "New partner referral",
    "why": "Partners fill in one short form per referral.",
    "config": {
      "Form": "Partner referral"
    },
    "outputs": [
      "response_id",
      "timestamp",
      "partner_name",
      "partner_email",
      "referral_name",
      "referral_email",
      "referral_company",
      "need",
      "estimated_value"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "contact",
      "kind": "action",
      "app": "HubSpot",
      "event": "Create or Update Contact",
      "title": "Create the referred contact",
      "why": "The referral becomes a contact with the partner recorded on it.",
      "fields": {
        "Email": "{{trigger.referral_email}}",
        "First Name": "{{trigger.referral_name}}",
        "Company Name": "{{trigger.referral_company}}",
        "Lifecycle Stage": "salesqualifiedlead",
        "Referred by (custom property)": "{{trigger.partner_name}} <{{trigger.partner_email}}>"
      },
      "outputs": [
        "id",
        "is_new"
      ]
    },
    {
      "key": "deal",
      "kind": "action",
      "app": "HubSpot",
      "event": "Create Deal",
      "title": "Open a deal credited to the partner",
      "why": "The partner email on the deal is what commission reports read.",
      "fields": {
        "Deal Name": "{{trigger.referral_company}}: {{trigger.need}} (referral)",
        "Pipeline": "Sales Pipeline",
        "Deal Stage": "appointmentscheduled",
        "Amount": "{{trigger.estimated_value}}",
        "Associated Contact": "{{contact.id}}",
        "Referral partner (custom property)": "{{trigger.partner_email}}"
      },
      "outputs": [
        "id",
        "deal_url"
      ]
    },
    {
      "key": "thanks",
      "kind": "action",
      "app": "Gmail",
      "event": "Send Email",
      "title": "Thank the partner",
      "why": "A quick, specific thank-you is the cheapest way to get the next referral.",
      "fields": {
        "To": "{{trigger.partner_email}}",
        "Subject": "Thanks for introducing {{trigger.referral_company}}",
        "Body Type": "plain",
        "Body": "Hi {{trigger.partner_name}},\n\nThank you for referring {{trigger.referral_name}} at {{trigger.referral_company}}. We will reach out within one working day and keep you posted on how it goes.\n\nYOUR_NAME",
        "From Name": "YOUR_NAME"
      },
      "outputs": [
        "id",
        "thread_id"
      ]
    }
  ]
}
