n8n

How to Automate Telegram Brave Search Answers?

Get fast web answers inside Telegram without leaving the chat. Team members type the command slash brave followed by a question and receive search results back in seconds. This helps operations and research tasks run faster during daily work.

The flow listens to new Telegram messages, checks if the text includes the slash brave command, and ignores all other messages. It then grabs the message text, cleans out the command, and sends the query to a Brave Search tool through the MCP client. The first tool from the Brave tool list is used, and the result text is sent back to the same chat with simple formatting.

The setup cuts context switching and gives quick facts for internal updates, content drafts, and quick checks in group chats. You will need a Telegram bot token and a Brave Search API key. Install the MCP community node, set the BRAVE API KEY environment value in the credential, and link the Telegram and MCP nodes in n8n. Expect faster answers, fewer browser tabs, and quicker team discussions. See the Tools Required section for account links.

What are the key features?

  • Telegram message trigger listens for new chat messages and starts the flow only on app events
  • Command filter uses an If node to run searches only when the message contains slash brave
  • Message parsing removes the slash brave command and keeps only the clean query text
  • MCP client lists available Brave tools and automatically selects the first tool
  • Executes the Brave search tool with the cleaned query and returns result content
  • Sends a formatted Telegram reply to the original user using HTML parse mode

What are the benefits?

  • Reduce manual search time from 2 minutes to 15 seconds per query
  • Automate 100 percent of lookups triggered by the slash brave command
  • Cut context switching by replying inside Telegram chats
  • Handle many queries in busy group chats without slowing down
  • Connect Telegram and Brave Search into one simple flow

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Telegram and Brave Search. See the Tools Required section above for links to create accounts with these services.
  3. In n8n, install the community node for MCP: Settings > Community Nodes > Install > search for n8n-nodes-mcp and confirm the install.
  4. Create a Telegram bot token using BotFather in Telegram, then copy the access token.
  5. In the n8n credentials manager, create a new Telegram credential and paste the bot token. Save the credential.
  6. Get a Brave Search API key from the Brave Search API page. Copy the key.
  7. In the n8n credentials manager, create a new MCP Client credential for Brave and set the Environment value to BRAVE_API_KEY=your-api-key, then save.
  8. Open the Get Message node and select your Telegram credential so n8n can receive messages from your bot.
  9. Open the Send message node and select the same Telegram credential so replies go back to the user.
  10. Open the List Brave Tools and Exec Brave tool nodes and select the MCP Client credential you just created.
  11. Check the If node condition to ensure it detects messages containing slash brave so only those run the search path.
  12. Activate the workflow. Send a normal message to the bot to confirm no reply, then send /brave your query and confirm a search result returns.
  13. If no reply appears, verify your n8n instance is reachable over HTTPS, recheck the Telegram bot token, confirm BRAVE_API_KEY is correct, and ensure the bot is added to the chat and allowed to read messages.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Brave Search

Sign up

Free AI plan: $0 / mo, 2,000 requests / mo, 1 request/second

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.