Help with my workflow

So my workflow is basically asking yes or no. It uses a telegram trigger and a send message with a reply keyboard. So the problem is when i send a message it triggers and sends a message and does not wait for the reply it just puts up the text as the output. Any solutions?

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

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

What are you trying to do? Can you share more information on your actual use case. The above workflow you created is doing exactly what you did, listens for a message and prints out plain text. When you reply, it listens for the reply and simply prints out the same thing. I think your understanding of the reply keyboard is incorrect.

  • So, are you trying to capture information from a user?
  • Are there multiple questions?
  • What are you planning to do with the answer?

The problem is that it’s a bit hard to manage when the user will respond.

So you will have to have actually two workflows:

  1. Sends the text message with the custom keyboard.
  2. Watch for messages and check if it was in response

There is a good example to follow here.

You might have one of two different approaches.

  1. Use a datatable and store the original message and chat id. When a reply comes in, check if the chat id exist in the datatable, if yes, then store the answer
  2. Use an AI agent with a tool to keep track of when a user replies and use the tool to write the answer.

If this is just a simple message you blast/emit out to users and you want to capture their replies, then maybe option 1 will do the job. I can help create an example if you need

Let me explain, when I send a message it will trigger the telegram trigger, and after that it will send a question and a reply keyboard option box will pop out in telegram, but it isnt actually taking the option box answers, the output is the question message itself. And after the answer, i will basically make a switch node and edit a google sheet for every different option.

Yes this is correct, because the answer the user is sending back, will come in via the trigger once again. The reply keyboard option doesnt mean that send message node is waiting for an answer.

However, you can change the Operation to Send and Wait for Response, which will wait for the user to reply and then continue once they did. This option however has limitations and will send a web form url which you have to open to record your answer

Is there anything so I can do it in telegram not external because i want it to be as simple as possible, also the options are the days of week not true and false

See if this helps. You can actually set the inline keyboard with options. The trick is to add the callback option to the on message trigger and then check for the response

First trigger will be to send the list of options:

Second trigger will be receiving the answer:

If you want to clean up the buttons and force them underneath each other, then just separate them by a row each like below. Unfortunately I believe Telegram does not support dropdowns

i did the same thing but why doesnt it work? Like I feel something is wrong it doesnt receive any answer