{
  "workflow_name": "AI agent that promotes each new event across your channels",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Event",
          "app": {
            "key": "google_calendar",
            "fm_app": "google_calendar"
          },
          "eventSlug": "new_or_updated_event",
          "eventTitle": "New or Updated Event",
          "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": "google_calendar",
        "stepID": "1",
        "action": "new_or_updated_event",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "event_id": "e1",
          "event_title": "Live Q&A: Automation Tips",
          "start_time": "2026-07-20T17:00:00Z",
          "description": "Ask us anything about automating your business."
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "event_id": "e1",
              "event_title": "Live Q&A: Automation Tips",
              "start_time": "2026-07-20T17:00:00Z",
              "description": "Ask us anything about automating your business."
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "AI Agent by FlowMattic",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "stepIndex": 2,
          "app": {
            "key": "ai_agent",
            "fm_app": "ai_agent"
          },
          "eventSlug": "execute_agent",
          "eventTitle": "Execute Agent"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 350,
          "height": 82
        },
        "actionAppArgs": {
          "system_prompt": "Promote this event. Post tailored announcements to Telegram and Discord.",
          "user_input": "Event: {google_calendar1.event_title} at {google_calendar1.start_time}. {google_calendar1.description}",
          "output_format": "text",
          "application": "ai_agent",
          "responseViewType": "on",
          "include_execution_log": "",
          "include_request_body": ""
        },
        "application": "ai_agent",
        "stepID": "2",
        "nodeType": "aiAgent",
        "agent_config": {
          "chat_model": {
            "connect_id": "",
            "model_id": "gpt-4o",
            "model_name": "GPT-4o",
            "provider": "openai",
            "max_tokens": "1024",
            "temperature": "0.7",
            "top_p": "1",
            "top_k": "0",
            "frequency_penalty": "0",
            "presence_penalty": "0",
            "nodeId": "2-chatModel",
            "position": {
              "x": 215,
              "y": 172
            }
          },
          "tools": [
            {
              "app": "telegram",
              "app_name": "Telegram",
              "app_icon": "",
              "action": "send_message",
              "action_title": "Send a Text Message",
              "tool_name": "Telegram - Send a Text Message",
              "tool_description": "Announce on Telegram",
              "actionAppArgs": {
                "text": "AI:"
              },
              "configured": true,
              "sourceNodeId": "2-tool"
            },
            {
              "app": "discord",
              "app_name": "Discord",
              "app_icon": "",
              "action": "channel_message",
              "action_title": "Send Channel Message",
              "tool_name": "Discord - Send Channel Message",
              "tool_description": "Announce on Discord",
              "actionAppArgs": {
                "message": "AI:"
              },
              "configured": true,
              "sourceNodeId": "2-tool"
            }
          ]
        }
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Send Email",
          "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": "list@yourcompany.com",
          "email_subject": "Save the date: {google_calendar1.event_title}",
          "email_body": "Join us on {google_calendar1.start_time}!"
        },
        "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": "AI agent that promotes each new event across your channels",
    "folder": "all",
    "description": "When a new public event is added to your calendar, an AI agent writes channel-specific promos and posts them to Telegram and Discord, then emails your list a save-the-date.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}