Skip to content
Telegram OpenAI HTT...
 
Notifications
Clear all

Telegram OpenAI HTTP Node Errors (400/404)

2 Posts
2 Users
0 Reactions
4 Views
Mustafa
(@mustafa)
Posts: 1
New Member
Topic starter
 

Hi callin.io team,

I’m building an AI-powered Telegram automation on callin.io Cloud using:

Telegram Webhook → Edit Fields → OpenAI (LLM) → HTTP Request

My goal: When I send a message to my bot, OpenAI generates a reply, and it’s sent back to Telegram.

:white_check_mark:

Setup:

  1. Webhook Node

  2. Edit Fields Node

    • Produces JSON like:
      {
      “chatId”: 6039014854,
      “userMessage”: “Merhaba”
      }
  3. LLM (OpenAI)

    • Using basic LLM node with my OpenAI key
    • Input: {{ $json["userMessage"] }}
    • Output: response is OK (no error)
  4. HTTP Request Node

    • Method: POST
    • URL: https://api.telegram.org/bot <MY_TOKEN>/sendMessage
    • Body (JSON):
      {
      “chat_id”: {{$json["chatId"]}},
      “text”: {{$json["llmOutput"]}} // or raw message for testing
      }
    • Headers: Content-Type: application/json

:cross_mark:

Problems:

  • I still get:

    • 400: Bad Request: message text is empty
    • Or 404 Not Found
  • Even when using hardcoded text like “text”: “Hello test” → still fails

  • But the same API call works outside callin.io
  • The OpenAI LLM node gives correct output (I checked manually)

:magnifying_glass_tilted_left:

Tried:

  • New Telegram token
  • Rebuilding flow twice
  • Both Fixed & Expression modes
  • Manual test with cURL (worked)
  • Setting webhook manually via BotFather (succeeded)

:red_question_mark:

What I Need Help With:

  • Why does the HTTP node not send the Telegram message?
  • Is there a bug with the value mapping from LLM to HTTP node?
  • Is there something specific I must do in callin.io Cloud to pass the correct body?

Thanks for your time.
Mustafa

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your callin.io setup

  • callin.io version:
  • Database (default: SQLite):
  • callin.io EXECUTIONS_PROCESS setting (default: own, main):
  • Running callin.io via (Docker, npm, callin.io cloud, desktop app):
  • Operating system:

Please provide the rewritten markdown content *it should be in the markdown format.

 
Posted : 15/06/2025 12:34 pm
darrell_tw
(@darrell_tw)
Posts: 18
Active Member
 

400 indicates that the message text is empty.

{
“chat_id”: {{$json[“chatId”]}},
“text”: {{$json[“llmOutput”]}} // it means here the output {{$json["llmOutput"]} is empty
}

This suggests the LLM output may not be as expected.


404 usually means the URL was not found.

  https://api.telegram.org/bot<MY_TOKEN>/sendMessage 

This should be corrected. Can you confirm?


Please share the workflow code directly, rather than providing a callin.io workflow URL. We are unable to view workflows directly from a URL.

 
Posted : 15/06/2025 4:43 pm
Share: