Skip to Workflow Atlas
Event-Driven AutomationAI systemIntermediate

Telegram AI Chatbot with Semantic RAG

Telegram AI Chatbot with Semantic RAG is a 16-node automation blueprint connecting Telegram, OpenAI, Postgres PGVector. Inspect its trigger, execution graph, branches, and implementation requirements.

Interactive system map

Follow the runtime. Inspect what supports it.

Solid horizontal paths show main-channel execution. Violet dependencies sit beneath the exact step they configure or empower.

16

Nodes

16

Links

1

Run groups

Connected tools

4 integrations

  • Telegram
  • OpenAI
  • PostgreSQL
  • LangChain

Canvas controls

Fit wide systems, then zoom into any run group.

Telegram AI Chatbot with Semantic RAG execution lanes1 run groups containing 16 workflow nodes and 16 visible links. Solid horizontal lines are main-channel runtime links. Violet dashed lines connect typed dependencies beneath the runtime step they support. Focus any node to inspect its immediate path.Telegram Trigger. Telegram node, telegramTrigger. 0 incoming and 1 outgoing connections.STARTTelegram TriggerTELEGRAMTELEGRAMTRIGGER0 IN / 1 OUTWhen chat message received. trigger node, chatTrigger. 0 incoming and 1 outgoing connections.STARTWhen chat message receivedTRIGGERCHATTRIGGER0 IN / 1 OUTGenerate session id. transform node, set. 2 incoming and 1 outgoing connections.STEP 02Generate session idTRANSFORMSET2 IN / 1 OUTAI Agent. ai node, agent. 5 incoming and 1 outgoing connections.STEP 03AI AgentAIAGENT5 IN / 1 OUTCame from Telegram?. Telegram node, if. 1 incoming and 2 outgoing connections.STEP 04Came from Telegram?TELEGRAMIF1 IN / 2 OUTSplit text into chunks. transform node, code. 1 incoming and 1 outgoing connections.STEP 05Split text into chunksTRANSFORMCODE1 IN / 1 OUTBeautify chat response. transform node, set. 1 incoming and 0 outgoing connections.STEP 05Beautify chat responseTRANSFORMSET1 IN / 0 OUTLoop Over Items. integration node, splitInBatches. 2 incoming and 2 outgoing connections.STEP 06Loop Over ItemsINTEGRATIONSPLITINBATCHES2 IN / 2 OUTNo Operation, do nothing. integration node, noOp. 1 incoming and 0 outgoing connections.STEP 07No Operation, do nothingINTEGRATIONNOOP1 IN / 0 OUTEscape Markdown. transform node, code. 1 incoming and 1 outgoing connections.STEP 08Escape MarkdownTRANSFORMCODE1 IN / 1 OUTRespond on Telegram in batches. Telegram node, telegram. 1 incoming and 1 outgoing connections.OUTCOMERespond on Telegram in ba…TELEGRAMTELEGRAM1 IN / 1 OUTOpenAI Chat Model. OpenAI node, lmChatOpenAi. 0 incoming and 1 outgoing connections.DEPENDENCY · DEPTH 1OpenAI Chat ModelOPENAILMCHATOPENAI0 IN / 1 OUTSimple Memory. ai node, memoryBufferWindow. 0 incoming and 1 outgoing connections.DEPENDENCY · DEPTH 1Simple MemoryAIMEMORYBUFFERWINDOW0 IN / 1 OUTCall the SQL composer Workflow. ai node, toolWorkflow. 0 incoming and 1 outgoing connections.DEPENDENCY · DEPTH 1Call the SQL composer Wor…AITOOLWORKFLOW0 IN / 1 OUTPostgres PGVector Store. PostgreSQL node, vectorStorePGVector. 1 incoming and 1 outgoing connections.DEPENDENCY · DEPTH 1Postgres PGVector StorePOSTGRESQLVECTORSTOREPGVECTOR1 IN / 1 OUTEmbeddings Ollama. ai node, embeddingsOllama. 0 incoming and 1 outgoing connections.DEPENDENCY · DEPTH 2Embeddings OllamaAIEMBEDDINGSOLLAMA0 IN / 1 OUT

Signal inspector

Focus, hover, or select a step to isolate its runtime and support links.

Main-channel runtimeTyped dependencytriggeraidecisiontransformintegration
Scroll horizontally to follow every connected flow.16 connected nodesEnter or click to lock · Escape to clear

Runtime breakdown

Read the execution spine before its dependencies.

Each run group separates main-channel steps from the models, tools, retrievers, and data services that support them. Start and outcome labels apply only to runtime nodes.

01

Run Group

Telegram Trigger

11 Execution Links5 Support Dependencies
  1. Start

    Telegram Trigger

    Trigger

    When chat message received

    Trigger

  2. Step 2

    Generate session id

    Transform

  3. Step 3

    AI Agent

    AI reasoning

  4. Step 4

    Came from Telegram?

    Decision

  5. Step 5

    Split text into chunks

    Transform

    Beautify chat response

    Transform

  6. Step 6

    Loop Over Items

    Integration

  7. Step 7

    No Operation, do nothing

    Integration

  8. Step 8

    Escape Markdown

    Transform

  9. Outcome

    Respond on Telegram in batches

    Integration

Attached dependencies

These nodes support the runtime above; they are not additional starts or outcomes.

5 nodes
  • OpenAI Chat Model

    AI reasoning dependency

  • Simple Memory

    AI reasoning dependency

  • Call the SQL composer Workflow

    AI reasoning dependency

  • Postgres PGVector Store

    AI reasoning dependency

  • Embeddings Ollama

    AI reasoning dependency

Turn the map into a plan

Adapt this blueprint to your company.

Bring the system shape into a workspace, then define the production controls, data boundaries, owners, and delivery sequence around your context.