Templates / Telegram support bot with OpenAI, Pinecone and human expert escalation

Telegram support bot with OpenAI, Pinecone and human expert escalation

Ready for 3.0

by Igor Chernyaev · 216 views · created 2025-11-28 · Support Chatbot, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 39 nodes and runs on Telegram events (message). Along the way it connects Telegram, Pinecone Vector Store and Embeddings OpenAI.

How it runs

Trigger: On Telegram events (message).

  1. Extract Group ID (Code): runs custom JavaScript code
  2. PrepareReplyFlag_Code (Code): runs custom JavaScript code
  3. QuestionOrReply_Switch (Switch): routes items into 2 branches
  4. QuestionFilter_Code (Code): runs custom JavaScript code
  5. IsExpert_Code (Code): runs custom JavaScript code
  6. ValidQuestion_IF (If): checks a condition and branches into true / false
  7. IsExpert_IF (If): checks a condition and branches into true / false
  8. Set Original Question (Edit Fields (Set)): sets 2 fields: original_text, original_message_id
  9. Reformulate_Message (Telegram): uses Telegram
  10. AddUserID_Metadata_Reply (Edit Fields (Set)): sets 5 fields: user_id, reply_message_id, chat_id…

…plus 21 more steps. See the full node list below.

Services it uses

TelegramPinecone Vector StoreEmbeddings OpenAI

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 (10)

From the author

Template name Smart AI Support Assistant for Telegram Short description Smart AI Support Assistant for Telegram automatically answers repeated questions in your group using a Q&A knowledge base in Pinecone and forwards new or unclear questions to a human…

Excerpt from Igor Chernyaev's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.