Telegram Start Block running without trigger

Start Block is configured for Telegram Trigger - Published and Draft modes. Bot is running and Mindstudio recognizes API key and correctly names the bot.

When the agent is started it immediately runs the workflow instead of waiting for trigger

I created a small workflow with a display content block with the {{message}} variable. Upon start it runs and displays undefined.

https://app.mindstudio.ai/agents/telegram-trigger-test-605e3f70/run

HI @aiprofessor,

Thanks for the post!

Could you let me know if you manually launched the Agent? If so, the variables in the Start block won’t receive any value, which is why you’re seeing “undefined”.

When the Start block is set to the Telegram Message trigger, and the Agent is published, it will wait for an incoming message from Telegram. That message starts a new run, populates the variables in the Start block, and moves through the workflow.

Let me know if this clarifies things.

Thanks Alex. I did not understand that just by publishing the agent is actively listening. Very powerful integration! :100:

1 Like

@aiprofessor I can see where the confusion came from. That interface has been updated to hopefully make it a little more clear that the agent is listening for messages and there is nothing to “Run” from within MindStudio.