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

**URL:** <https://community.n8n.io/t/issue-with-loop-using-telegram-node-and-basic-llm-chain-to-modify-the-prompt/89438>\
**Category:** Help me Build my Workflow\
**Created:** [March 17, 2025, 9:49pm UTC](https://community.n8n.io/t/issue-with-loop-using-telegram-node-and-basic-llm-chain-to-modify-the-prompt/89438 "2025-03-17T21:49:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlosMPrz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/carlosmprz/32/65439_2.png) [@CarlosMPrz](https://community.n8n.io/u/CarlosMPrz)\
**Post date:** [March 17, 2025, 9:49pm UTC](https://community.n8n.io/t/issue-with-loop-using-telegram-node-and-basic-llm-chain-to-modify-the-prompt/89438/1 "2025-03-17T21:49:17Z")

</div>

Hi guys, i am learning how to use n8n and saw this tutorial: [https://www.youtube.com/watch?v=o\_oSYl6gSO8](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!

---

<div class="post-metadata">

**Author:** ![barn4k](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/barn4k/32/8170_2.png) [@barn4k](https://community.n8n.io/u/barn4k)\
**Post date:** [March 18, 2025, 10:39pm UTC](https://community.n8n.io/t/issue-with-loop-using-telegram-node-and-basic-llm-chain-to-modify-the-prompt/89438/2 "2025-03-18T22:39:45Z")

</div>

hello @CarlosMPrz

> [@CarlosMPrz](#):
>
> the data is not updated with the last input, i don’t understand what i’m doing wrong.

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?

---

<div class="post-metadata">

**Author:** ![CarlosMPrz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/carlosmprz/32/65439_2.png) [@CarlosMPrz](https://community.n8n.io/u/CarlosMPrz)\
**Post date:** [March 19, 2025, 4:10am UTC](https://community.n8n.io/t/issue-with-loop-using-telegram-node-and-basic-llm-chain-to-modify-the-prompt/89438/3 "2025-03-19T04:10:14Z")

</div>

Hellos @barn4k

I record my screen to illustrate the problem: [https://youtu.be/HSXa4zselcI](https://youtu.be/HSXa4zselcI)

Apologies in advance foy my terrible english 😅

---

<div class="post-metadata">

**Author:** ![Franz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/franz/32/66008_2.png) [@Franz](https://community.n8n.io/u/Franz)\
**Post date:** [March 19, 2025, 11:26am UTC](https://community.n8n.io/t/issue-with-loop-using-telegram-node-and-basic-llm-chain-to-modify-the-prompt/89438/4 "2025-03-19T11:26:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![CarlosMPrz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/carlosmprz/32/65439_2.png) [@CarlosMPrz](https://community.n8n.io/u/CarlosMPrz)\
**Post date:** [March 21, 2025, 6:25am UTC](https://community.n8n.io/t/issue-with-loop-using-telegram-node-and-basic-llm-chain-to-modify-the-prompt/89438/5 "2025-03-21T06:25:57Z")

</div>

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

Thank you @Franz
