{
  "workflow_name": "Send Gmail call summaries and missed-call alerts from CallRail",
  "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": "CAL8154748ae6bd4e278a7cddd38a662f4f",
          "answered": true,
          "direction": "inbound",
          "customer_name": "Riley Chen",
          "customer_phone_number": "+15125550199",
          "customer_city": "Austin",
          "customer_state": "TX",
          "customer_country": "US",
          "tracking_phone_number": "+15125550100",
          "business_phone_number": "+15125550111",
          "duration": "184",
          "start_time": "2026-10-21T14:05:31.000-05:00",
          "source": "Google Ads",
          "source_name": "Google Paid",
          "medium": "cpc",
          "campaign": "Fall tune-up",
          "landing_page_url": "https://example.com/pricing",
          "voicemail": false,
          "recording": "https://app.callrail.com/calls/CAL8154748ae6bd4e278a7cddd38a662f4f/recording",
          "company_name": "Example Heating & Air"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "id": "CAL8154748ae6bd4e278a7cddd38a662f4f",
              "answered": true,
              "direction": "inbound",
              "customer_name": "Riley Chen",
              "customer_phone_number": "+15125550199",
              "customer_city": "Austin",
              "customer_state": "TX",
              "customer_country": "US",
              "tracking_phone_number": "+15125550100",
              "business_phone_number": "+15125550111",
              "duration": "184",
              "start_time": "2026-10-21T14:05:31.000-05:00",
              "source": "Google Ads",
              "source_name": "Google Paid",
              "medium": "cpc",
              "campaign": "Fall tune-up",
              "landing_page_url": "https://example.com/pricing",
              "voicemail": false,
              "recording": "https://app.callrail.com/calls/CAL8154748ae6bd4e278a7cddd38a662f4f/recording",
              "company_name": "Example Heating & Air"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Branch by FlowMattic",
          "app": {
            "key": "branch",
            "fm_app": "branch"
          },
          "eventSlug": "evaluate_condition",
          "eventTitle": "Branch",
          "customLabel": "Was the call answered?",
          "layoutDirection": "horizontal",
          "stepNumber": 2
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "filterConditions": {
            "1": [
              {
                "id": "c1",
                "key": "{call_rail1.answered}",
                "condition": "is_true",
                "value": ""
              }
            ]
          }
        },
        "filterConditions": {
          "1": [
            {
              "id": "c1",
              "key": "{call_rail1.answered}",
              "condition": "is_true",
              "value": ""
            }
          ]
        },
        "application": "branch",
        "stepID": "2",
        "action": "evaluate_condition",
        "nodeType": "branch"
      },
      {
        "id": "2-branchRoute_yes",
        "position": {
          "x": 395,
          "y": -160
        },
        "type": "action",
        "data": {
          "label": "Yes",
          "branchType": "yes",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "branchRoute": true,
        "branchType": "yes",
        "stepID": "2-branchRoute_yes",
        "nodeType": "branchRoute",
        "actionAppArgs": []
      },
      {
        "id": "3",
        "position": {
          "x": 595,
          "y": -160
        },
        "type": "action",
        "data": {
          "label": "Email call summary",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "gmail",
            "fm_app": "gmail"
          },
          "eventSlug": "send_email",
          "eventTitle": "Send Email"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "email_to": "manager@example.com",
          "subject": "Call with {call_rail1.customer_name} ({call_rail1.duration}s)",
          "message": "Caller: {call_rail1.customer_name} {call_rail1.customer_phone_number}\nSource: {call_rail1.source_name} / {call_rail1.campaign}\nLanding page: {call_rail1.landing_page_url}\nRecording: {call_rail1.recording}"
        },
        "application": "gmail",
        "action": "send_email",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "2_yes_placeholder",
        "position": {
          "x": 770,
          "y": -160
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "2_yes_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      },
      {
        "id": "2-branchRoute_no",
        "position": {
          "x": 395,
          "y": 160
        },
        "type": "action",
        "data": {
          "label": "No",
          "branchType": "no",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "branchRoute": true,
        "branchType": "no",
        "stepID": "2-branchRoute_no",
        "nodeType": "branchRoute",
        "actionAppArgs": []
      },
      {
        "id": "4",
        "position": {
          "x": 595,
          "y": 160
        },
        "type": "action",
        "data": {
          "label": "Email missed-call alert",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "gmail",
            "fm_app": "gmail"
          },
          "eventSlug": "send_email",
          "eventTitle": "Send Email"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "email_to": "sales@example.com",
          "subject": "Missed call: call back {call_rail1.customer_phone_number}",
          "message": "{call_rail1.customer_name} from {call_rail1.customer_city}, {call_rail1.customer_state} called {call_rail1.tracking_phone_number} at {call_rail1.start_time} and nobody answered.\nSource: {call_rail1.source_name}\nPlease call them back."
        },
        "application": "gmail",
        "action": "send_email",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "2_no_placeholder",
        "position": {
          "x": 770,
          "y": 160
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "2_no_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      }
    ],
    "edges": [
      {
        "id": "e-1-2",
        "source": "1",
        "target": "2",
        "type": "step",
        "data": []
      },
      {
        "id": "e-2-2-branchRoute_yes",
        "source": "2",
        "target": "2-branchRoute_yes",
        "type": "branch",
        "data": []
      },
      {
        "id": "e-2-branchRoute_yes-3",
        "source": "2-branchRoute_yes",
        "target": "3",
        "type": "step",
        "data": []
      },
      {
        "id": "e-3-2_yes_placeholder",
        "source": "3",
        "target": "2_yes_placeholder",
        "type": "placeholder",
        "data": []
      },
      {
        "id": "e-2-2-branchRoute_no",
        "source": "2",
        "target": "2-branchRoute_no",
        "type": "branch",
        "data": []
      },
      {
        "id": "e-2-branchRoute_no-4",
        "source": "2-branchRoute_no",
        "target": "4",
        "type": "step",
        "data": []
      },
      {
        "id": "e-4-2_no_placeholder",
        "source": "4",
        "target": "2_no_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Send Gmail call summaries and missed-call alerts from CallRail",
    "folder": "all",
    "description": "When a CallRail call ends, a branch checks whether it was answered. Answered calls send a short summary with the source and recording link; missed calls send a call-back alert to your sales inbox. Local businesses stop losing leads that ring out after hours. After import, connect Gmail and change the two recipient addresses.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}