{
  "workflow_name": "AI agent that repurposes every new post into social and email",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Post Published",
          "app": {
            "key": "wordpress",
            "fm_app": "wordpress"
          },
          "eventSlug": "new_post",
          "eventTitle": "New Post",
          "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": "wordpress",
        "stepID": "1",
        "action": "new_post",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "post_id": "555",
          "post_title": "How we automate onboarding",
          "post_url": "https://example.com/blog/onboarding",
          "post_content": "Full article body goes here...",
          "post_excerpt": "A behind-the-scenes look...",
          "post_author": "Editor"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "post_id": "555",
              "post_title": "How we automate onboarding",
              "post_url": "https://example.com/blog/onboarding",
              "post_content": "Full article body goes here...",
              "post_excerpt": "A behind-the-scenes look...",
              "post_author": "Editor"
            }
          }
        ],
        "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": "Repurpose this blog post. Write and post a Telegram teaser and a Discord announcement, and save a newsletter blurb to Drive.",
          "user_input": "Title: {wordpress1.post_title}\nURL: {wordpress1.post_url}\nContent: {wordpress1.post_content}",
          "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": "Post a teaser to 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"
            },
            {
              "app": "google_drive",
              "app_name": "Google Drive",
              "app_icon": "",
              "action": "create_file_from_text",
              "action_title": "Create File From Text",
              "tool_name": "Google Drive - Create File From Text",
              "tool_description": "Save the newsletter blurb",
              "actionAppArgs": {
                "file_name": "AI:",
                "file_content": "AI:"
              },
              "configured": true,
              "sourceNodeId": "2-tool"
            }
          ]
        }
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Notify team on Slack",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "slack",
            "fm_app": "slack"
          },
          "eventSlug": "send_message_to_channel",
          "eventTitle": "Send Channel Message"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "message_text": "📝 AI repurposed \"{wordpress1.post_title}\" across channels."
        },
        "application": "slack",
        "action": "send_message_to_channel",
        "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 repurposes every new post into social and email",
    "folder": "all",
    "description": "When you publish a post, an AI agent writes a Telegram teaser, a Discord announcement, and a newsletter blurb, posts them, and saves the blurb to Google Drive for your editor.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}