{
  "schema_version": "1.0.0",
  "id": "linkedin-lead-form-to-hubspot",
  "title": "Send LinkedIn lead gen form leads to HubSpot",
  "category": "lead-gen-crm",
  "difficulty": "beginner",
  "featured": false,
  "description": "Push each LinkedIn Lead Gen Form response into HubSpot with the campaign name as its source, then post it to the sales channel.",
  "tags": [
    "leads",
    "linkedin-ads",
    "hubspot",
    "slack"
  ],
  "apps": [
    "LinkedIn Ads",
    "HubSpot",
    "Slack"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 2 steps after the trigger"
    ]
  },
  "tasks": {
    "typical": 2,
    "max": 2
  },
  "trigger": {
    "app": "LinkedIn Ads",
    "event": "New Lead Gen Form Response",
    "kind": "polling",
    "title": "New lead gen form response",
    "why": "Checks the ad account for new responses to the chosen lead gen form.",
    "config": {
      "Ad Account": "YOUR_LINKEDIN_AD_ACCOUNT",
      "Form": "Ops automation checklist"
    },
    "outputs": [
      "lead_id",
      "submitted_at",
      "form_name",
      "campaign_name",
      "first_name",
      "last_name",
      "email",
      "company",
      "job_title",
      "country"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "contact",
      "kind": "action",
      "app": "HubSpot",
      "event": "Create or Update Contact",
      "title": "Create or update the contact",
      "why": "LinkedIn already splits the name and supplies title and company, so the contact is complete on arrival. The campaign goes into a source property for reporting.",
      "fields": {
        "Email": "{{trigger.email}}",
        "First Name": "{{trigger.first_name}}",
        "Last Name": "{{trigger.last_name}}",
        "Company Name": "{{trigger.company}}",
        "Job Title": "{{trigger.job_title}}",
        "Country/Region": "{{trigger.country}}",
        "Lifecycle Stage": "marketingqualifiedlead",
        "Lead campaign (custom property)": "LinkedIn: {{trigger.campaign_name}}"
      },
      "outputs": [
        "id",
        "is_new",
        "profile_url"
      ]
    },
    {
      "key": "post",
      "kind": "action",
      "app": "Slack",
      "event": "Send Channel Message",
      "title": "Post the lead to sales",
      "why": "One line per lead, with the HubSpot link, so sales sees it the same day.",
      "fields": {
        "Channel": "#sales-leads",
        "Message Text": "LinkedIn lead: {{trigger.first_name}} {{trigger.last_name}}, {{trigger.job_title}} at {{trigger.company}} ({{trigger.country}}). Campaign: {{trigger.campaign_name}}. {{contact.profile_url}}",
        "Send as a bot?": "Yes",
        "Bot Name": "Zap alerts",
        "Include a link to this Zap?": "No"
      },
      "outputs": [
        "ts",
        "permalink"
      ]
    }
  ]
}
