Prepare Your Workflow
In this step we’ll set up the n8n workflow that powers your SaaS. Our example workflow receives data from a webhook and forwards it to a Telegram chat.
We’re using n8n as the automation engine. However, AgentCraft works with any platform that can expose a webhook or API endpoint — such as Zapier, Make (Integromat), or Flowise. The concepts are the same: you send data to a webhook, process it, and return a response.
What You’ll Build
We’re creating a simple SaaS service where customers send data to your webhook, and the data is delivered to their Telegram channel. This will help you understand how AgentCraft connects n8n workflows with end-user actions.

Our workflow contains three nodes:
Webhook – receives POST requests from your customers.
Edit Fields (Set node) – maps and formats the incoming data.
Telegram – sends the formatted message to a Telegram chat.
Webhook Node
Method: POST
Path: your webhook endpoint (e.g. telegram_notificator)
Auth: Header Auth (customers will provide their API key / token later)
Edit Fields Node
Maps incoming payload to
body.dataPrepares it for Telegram output
Telegram Node
Chat ID: your Telegram channel or group
Message: pulls
{{$json.body.data}}from the previous stepDisable Attribution: true
Test the Workflow
Create a Telegram Chat and connect the Bot to the Chat
Click Execute Workflow in n8n.
Send a POST request to your webhook URL with a
body.datafield.
You can find Telegram chatId by writing /start to @userinfobot
Check that the message appears in your Telegram chat.
Once the workflow works end-to-end, you’re ready to register it in AgentCraft to turn it into a SaaS product.
Last updated