{
  "workflow_name": "Send a weekly shout-out to every newly tagged advocate contact",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Every Week",
          "app": {
            "key": "schedule",
            "fm_app": "schedule"
          },
          "eventSlug": "week",
          "eventTitle": "Every Week",
          "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": "schedule",
        "stepID": "1",
        "action": "week",
        "nodeType": "step",
        "actionAppArgs": []
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Get advocate contacts",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "fluentcrm",
            "fm_app": "fluentcrm"
          },
          "eventSlug": "get_contact_by_tag_ids",
          "eventTitle": "Get Contact by Tag IDs"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "tag_ids": "advocate"
        },
        "application": "fluentcrm",
        "action": "get_contact_by_tag_ids",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Iterator",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "iterator",
            "fm_app": "iterator"
          },
          "eventSlug": "loop_through_array",
          "eventTitle": "Loop Through Array"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "iteratorArray": "{fluentcrm2.contacts}",
          "iterator_simple_response": "Yes",
          "iteratorMethod": "single",
          "batchSize": "25"
        },
        "application": "iterator",
        "action": "loop_through_array",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "4",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Send shout-out",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "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": "{iterator3.email}",
          "email_subject": "We appreciate you, {iterator3.first_name}!",
          "email_body": "Thanks for championing us this week."
        },
        "application": "email",
        "action": "send_email",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "5",
        "position": {
          "x": 700,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Log to Telegram",
          "layoutDirection": "horizontal",
          "stepNumber": 5,
          "app": {
            "key": "telegram",
            "fm_app": "telegram"
          },
          "eventSlug": "send_message",
          "eventTitle": "Send a Text Message"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "text": "Shout-out sent to {iterator3.first_name} ({iterator3.email})",
          "parse_mode": "HTML"
        },
        "application": "telegram",
        "action": "send_message",
        "nodeType": "step",
        "stepID": "5"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 875,
          "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-4",
        "source": "3",
        "target": "4",
        "type": "step",
        "data": []
      },
      {
        "id": "e-4-5",
        "source": "4",
        "target": "5",
        "type": "step",
        "data": []
      },
      {
        "id": "e-5-main_end_placeholder",
        "source": "5",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Send a weekly shout-out to every newly tagged advocate contact",
    "folder": "all",
    "description": "Weekly, pull all contacts tagged as advocates and loop each one, sending a personalised shout-out and logging it. Uses an Iterator over CRM contacts.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}