{
  "workflow_name": "Create a Google Docs brief for each new Facebook Lead Ads lead",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Lead",
          "app": {
            "key": "facebook_lead_ads",
            "fm_app": "facebook_lead_ads"
          },
          "eventSlug": "new_lead",
          "eventTitle": "New Lead",
          "layoutDirection": "horizontal",
          "stepNumber": 1
        },
        "targetPosition": "bottom",
        "type": "trigger",
        "stepNumber": 1,
        "expanded": true,
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "application": "facebook_lead_ads",
        "stepID": "1",
        "action": "new_lead",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "lead_id": "1209384756",
          "full_name": "Oliver Grant",
          "email": "oliver.grant@example.com",
          "phone_number": "+15550126655",
          "form_name": "Kitchen remodel quote",
          "ad_name": "Kitchen remodel carousel",
          "campaign_name": "Q4 remodel leads",
          "created_time": "2026-10-22T16:45:00+0000"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "lead_id": "1209384756",
              "full_name": "Oliver Grant",
              "email": "oliver.grant@example.com",
              "phone_number": "+15550126655",
              "form_name": "Kitchen remodel quote",
              "ad_name": "Kitchen remodel carousel",
              "campaign_name": "Q4 remodel leads",
              "created_time": "2026-10-22T16:45:00+0000"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create the lead brief",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "google_docs",
            "fm_app": "google_docs"
          },
          "eventSlug": "create_document",
          "eventTitle": "Create Document"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "title": "Lead brief: {facebook_lead_ads1.full_name} ({facebook_lead_ads1.form_name})",
          "content": "Name: {facebook_lead_ads1.full_name}\nEmail: {facebook_lead_ads1.email}\nPhone: {facebook_lead_ads1.phone_number}\n\nForm: {facebook_lead_ads1.form_name}\nAd: {facebook_lead_ads1.ad_name}\nCampaign: {facebook_lead_ads1.campaign_name}\nReceived: {facebook_lead_ads1.created_time}\n\nCall notes:\n"
        },
        "application": "google_docs",
        "action": "create_document",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Email the brief link",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "email",
            "fm_app": "email"
          },
          "eventSlug": "send_email",
          "eventTitle": "Send Email"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "to_email": "sales@example.com",
          "email_subject": "New lead: {facebook_lead_ads1.full_name}",
          "email_body": "A new lead came in from {facebook_lead_ads1.form_name}.\n\nBrief: {google_docs2.document_url}"
        },
        "application": "email",
        "action": "send_email",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "main_end_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      }
    ],
    "edges": [
      {
        "id": "e-1-2",
        "source": "1",
        "target": "2",
        "type": "step",
        "data": []
      },
      {
        "id": "e-2-3",
        "source": "2",
        "target": "3",
        "type": "step",
        "data": []
      },
      {
        "id": "e-3-main_end_placeholder",
        "source": "3",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Create a Google Docs brief for each new Facebook Lead Ads lead",
    "folder": "all",
    "description": "Each new Facebook Lead Ads lead gets its own Google Docs brief with their details and the ad and form they came from, and the link is emailed to your sales inbox. Reps have a ready document for call notes before the first call. After import, pick the Facebook page and form, and set the email address that receives the briefs.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}