Route chat prompts to text, image, or video replies with Agnes AI and Telegram
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs when a chat message arrives. Along the way it connects Telegram. It also calls apihub.agnes-ai.com and upload.imagekit.io over HTTP.
How it runs
Trigger: When a chat message arrives.
- Switch: routes items into 3 branches
- Agnes Text (HTTP Request): calls apihub.agnes-ai.com (POST)
- Agnes Image (HTTP Request): calls apihub.agnes-ai.com (POST)
- Agnes Video (HTTP Request): calls apihub.agnes-ai.com (POST)
- Respond to Chat (Chat): uses Chat
- Save photo to ImageKit (HTTP Request): calls upload.imagekit.io (POST)
- HTTP Request: calls an HTTP API
- If: checks a condition and branches into true / false
- Get video file (HTTP Request): calls an HTTP API
- Wait: waits 30 seconds
…plus 1 more step. See the full node list below.
Services it uses
HTTP calls to: apihub.agnes-ai.com, upload.imagekit.io
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Chat
@n8n/n8n-nodes-langchain.chat - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow receives a chat message, routes it to Agnes AI to generate either a text response, an image, or a video, uploads generated images to ImageKit, and sends completed videos to a Telegram chat. How it works 1. Receives an incoming…