{
  "workflow_name": "Create Zoho CRM leads from first-time CallRail callers",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Post Call",
          "app": {
            "key": "call_rail",
            "fm_app": "call_rail"
          },
          "eventSlug": "post.call",
          "eventTitle": "Post Call",
          "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": "call_rail",
        "stepID": "1",
        "action": "post.call",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "id": "CAL8154a2e9f0b14c7",
          "customer_name": "Maria Lopez",
          "customer_phone_number": "+15550193344",
          "customer_city": "Austin",
          "customer_state": "TX",
          "source": "Google Ads",
          "tracking_phone_number": "+15550100200",
          "duration": "312",
          "answered": "true",
          "first_call": "true",
          "start_time": "2026-10-22T14:05:00.000-05:00",
          "recording": "https://app.callrail.com/calls/CAL8154a2e9f0b14c7/recording"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "id": "CAL8154a2e9f0b14c7",
              "customer_name": "Maria Lopez",
              "customer_phone_number": "+15550193344",
              "customer_city": "Austin",
              "customer_state": "TX",
              "source": "Google Ads",
              "tracking_phone_number": "+15550100200",
              "duration": "312",
              "answered": "true",
              "first_call": "true",
              "start_time": "2026-10-22T14:05:00.000-05:00",
              "recording": "https://app.callrail.com/calls/CAL8154a2e9f0b14c7/recording"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Filter Conditions",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "filter",
            "fm_app": "filter"
          },
          "eventSlug": "continue_if",
          "eventTitle": "Continue If Condition Meet",
          "customLabel": "Continue only for first-time callers"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "filterConditions": {
            "1": [
              {
                "key": "{call_rail1.first_call}",
                "condition": "exactly_match",
                "value": "true"
              }
            ]
          }
        },
        "application": "filter",
        "action": "continue_if",
        "nodeType": "step",
        "stepID": "2",
        "filterConditions": {
          "filterConditions": {
            "1": [
              {
                "key": "{call_rail1.first_call}",
                "condition": "exactly_match",
                "value": "true"
              }
            ]
          }
        }
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create the Zoho CRM lead",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "zoho_crm",
            "fm_app": "zoho_crm"
          },
          "eventSlug": "create_lead",
          "eventTitle": "Create Lead"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "last_name": "{call_rail1.customer_name}",
          "phone": "{call_rail1.customer_phone_number}",
          "city": "{call_rail1.customer_city}",
          "state": "{call_rail1.customer_state}",
          "lead_source": "{call_rail1.source}",
          "description": "First call on {call_rail1.start_time} ({call_rail1.duration} seconds).\nRecording: {call_rail1.recording}"
        },
        "application": "zoho_crm",
        "action": "create_lead",
        "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 Zoho CRM leads from first-time CallRail callers",
    "folder": "all",
    "description": "After a call ends in CallRail, FlowMattic checks whether it was the caller's first call and, if so, creates a lead in Zoho CRM with their number, location, source and recording link. Marketing teams can see which ads and keywords bring in phone leads. After import, connect Zoho CRM and adjust the lead source mapping.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}