All workflows
Telegram logoSerper logoOpenAI logo

Answer Telegram questions from the web, with sources

Answers questions asked in a Telegram chat by searching the web, and replies with the answer and the pages it came from.

On new message in Telegram3 apps4 steps

Apps it connects

Authenticate each one once and the workflow is ready to run.

What it does

Each integration step this workflow runs, in order, what it is for, and the conditions and loops that decide when it runs.

  1. 1TelegramNew message triggerStarts a run whenever a message arrives in the Telegram chat your bot watches, or any chat if none is chosen.
  2. 2SerperSearch webSearches the web for the question as asked and returns the top results with their titles, links and snippets.
  3. 3OpenAIQuery modelAsks the AI to answer only from the numbered search results, citing each by number and declining off-topic questions.
  4. 4TelegramSend messageReplies in the chat with the answer and its numbered sources, or with a note when nothing citable was found.

How it works

What happens on each run, in plain English.

Whenever someone asks a question in your Telegram chat, the web is searched for it, the top results are read, and a written answer comes back in the same chat with the pages it came from listed underneath. Messages too short to be a question are ignored, and so are the workflow's own replies, so it never searches for one of its own answers.

The sources under every answer are written by the workflow from what the search actually returned, never by the AI, so a link in a reply is always a page the search found. The AI is told to cite by number, to say plainly when the sources do not answer the question, and to decline questions outside the subjects you have given it. If the search returns nothing citable, the chat is told so and no answer is written at all. Long answers are shortened so the reply and its sources fit in one Telegram message.

You need a Telegram bot in the chat, and a short description of what this assistant is for.

telegramsearchresearchaisourcesassistant

Start from a workflow that already works.

Add "Answer Telegram questions from the web, with sources" to your workspace, connect its apps, and make it yours. No credit card required.

Free plan available · No credit card required