Issue with loop using telegram node and basic llm chain to modify the prompt

Hi guys, i am learning how to use n8n and saw this tutorial: https://www.youtube.com/watch?v=o_oSYl6gSO8 about the approval process.

I build something similar:

After the IF node in the false branch i execute LLM Basic Chain1 and the output pass to the SET node, but when Telegram message is sent the data is not updated with the last input, i don’t understand what i’m doing wrong.

I appreciate any help!

hello @CarlosMPrz

What do you mean? The first telegram message will be sent and if no approval received it should go via LLM node and return to the telegram again. That’s not happening?

And can you show the screenshot when the workflow is finishing?

Hellos @barn4k

I record my screen to illustrate the problem: https://youtu.be/HSXa4zselcI

Apologies in advance foy my terrible english :sweat_smile:

I am pretty sure the workflow works if you click on Test Workflow rather than testing individual nodes.

The issue with this loop is likely because Test Step has the output from Basic LLM Chain1, but it this output isn’t passed to the Posts node through Test Step.
When you click Test Step again on the Posts node, it uses the data it already has instead of receiving fresh input.

1 Like

Damn! you are right, testing the flow with “Test Workflow” works like charm.

Thank you @Franz