{
  "schema_version": "1.0.0",
  "id": "trade-show-scans-follow-up",
  "title": "Follow up trade show badge scans the next day",
  "category": "lead-gen-crm",
  "difficulty": "advanced",
  "featured": false,
  "description": "Score each badge scan logged in a sheet, put it in HubSpot, wait until the next day, and send the follow-up email from the rep who met them.",
  "tags": [
    "events",
    "trade-shows",
    "hubspot",
    "lead-scoring",
    "gmail"
  ],
  "apps": [
    "Google Sheets",
    "Code by Zapier",
    "HubSpot",
    "Delay by Zapier",
    "Gmail"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 5 steps after the trigger"
    ]
  },
  "tasks": {
    "typical": 4,
    "max": 4
  },
  "trigger": {
    "app": "Google Sheets",
    "event": "New Spreadsheet Row",
    "kind": "polling",
    "title": "New booth lead row",
    "why": "Each scan or hand-written lead is a new row. Reps add the conversation in booth_notes while it is fresh.",
    "config": {
      "Drive": "My Google Drive",
      "Spreadsheet": "Booth leads",
      "Worksheet": "Scans"
    },
    "outputs": [
      "row_number",
      "scanned_at",
      "full_name",
      "email",
      "company",
      "job_title",
      "company_size",
      "booth_notes",
      "rep_name",
      "rep_email"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "name",
      "kind": "code",
      "app": "Code by Zapier",
      "event": "Run JavaScript",
      "title": "Split the full name",
      "why": "Gives HubSpot a first name and the email a greeting.",
      "code": {
        "language": "javascript",
        "module": "split-name",
        "file": "code/split-name.js"
      },
      "input_data": {
        "full_name": "{{trigger.full_name}}"
      },
      "outputs": [
        "first_name",
        "last_name",
        "display_name"
      ]
    },
    {
      "key": "score",
      "kind": "code",
      "app": "Code by Zapier",
      "event": "Run JavaScript",
      "title": "Score the booth lead",
      "why": "The booth notes stand in for the form message, so a detailed conversation scores higher than a badge scan with no notes.",
      "code": {
        "language": "javascript",
        "module": "score-lead",
        "file": "code/score-lead.js"
      },
      "input_data": {
        "email": "{{trigger.email}}",
        "company": "{{trigger.company}}",
        "job_title": "{{trigger.job_title}}",
        "company_size": "{{trigger.company_size}}",
        "message": "{{trigger.booth_notes}}"
      },
      "outputs": [
        "score",
        "tier",
        "reasons",
        "is_work_email"
      ]
    },
    {
      "key": "contact",
      "kind": "action",
      "app": "HubSpot",
      "event": "Create or Update Contact",
      "title": "Create the contact with the event source",
      "why": "Records the event, the rep, and the score on the contact.",
      "fields": {
        "Email": "{{trigger.email}}",
        "First Name": "{{name.first_name}}",
        "Last Name": "{{name.last_name}}",
        "Company Name": "{{trigger.company}}",
        "Job Title": "{{trigger.job_title}}",
        "Lead source event (custom property)": "YOUR_EVENT_NAME",
        "Lead score (custom property lead_score)": "{{score.score}}",
        "Booth notes (custom property)": "{{trigger.booth_notes}}"
      },
      "outputs": [
        "id"
      ]
    },
    {
      "key": "wait",
      "kind": "delay",
      "app": "Delay by Zapier",
      "event": "Delay For",
      "title": "Wait until the next day",
      "why": "An email sent from the booth floor gets buried; one sent the next morning, after people are home, gets read.",
      "fields": {
        "Time Delayed For (value)": "18",
        "Time Delayed For (unit)": "hours"
      },
      "outputs": [
        "run_at"
      ]
    },
    {
      "key": "follow",
      "kind": "action",
      "app": "Gmail",
      "event": "Send Email",
      "title": "Send the follow-up from the rep",
      "why": "Sent from the Gmail account connected to this step. Connect the rep's account, or use a shared events address with the rep in Cc.",
      "fields": {
        "To": "{{trigger.email}}",
        "Subject": "Good to meet you at YOUR_EVENT_NAME, {{name.first_name}}",
        "Body Type": "plain",
        "Body": "Hi {{name.first_name}},\n\nThanks for stopping by our booth. {{trigger.rep_name}} noted that you mentioned: {{trigger.booth_notes}}\n\nWould a 20-minute call next week be useful? Pick a time here: YOUR_BOOKING_LINK\n\n{{trigger.rep_name}}",
        "From Name": "{{trigger.rep_name}}",
        "Cc": "{{trigger.rep_email}}"
      },
      "outputs": [
        "id",
        "thread_id"
      ]
    }
  ]
}
