# Switch workflows

**URL:** <https://community.n8n.io/t/switch-workflows/94996>\
**Category:** Questions\
**Created:** [March 31, 2025, 10:09am UTC](https://community.n8n.io/t/switch-workflows/94996 "2025-03-31T10:09:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suhani\_Bhatt](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/suhani_bhatt/32/59280_2.png) [@Suhani\_Bhatt](https://community.n8n.io/u/Suhani_Bhatt)\
**Post date:** [March 31, 2025, 10:09am UTC](https://community.n8n.io/t/switch-workflows/94996/1 "2025-03-31T10:09:35Z")

</div>

Hey,

I have a telegram message trigger, and I have two different workflows on same canvas, one workflow is responsible for sending email messages and another is for storing memories etc, how can I switch to these workflows based on the telegram message for example :

If i say email chris asking about his 3d printer then it must go to workflow A and if i say please remember that i met chris today, then it must go to workflow B

how can I achive this ? I tried if and switch but for email there can be different variations like send an email to chris, or send mail to chris, or send email to chris, please help

---

<div class="post-metadata">

**Author:** ![jcuypers](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jcuypers/32/54965_2.png) [@jcuypers](https://community.n8n.io/u/jcuypers)\
**Post date:** [March 31, 2025, 10:25am UTC](https://community.n8n.io/t/switch-workflows/94996/2 "2025-03-31T10:25:41Z")

</div>

Hi,

I guess this is why there are AI agents to figure out what you want to do. Hard-coding all of this (if there are more than a few choices) is not really an option, nor maintainable. Based on your request and context and tools available to the agent, it will figure out what to do. There are many examples of this in the sample templates.

Reg,  
J.

---

<div class="post-metadata">

**Author:** ![Suhani\_Bhatt](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/suhani_bhatt/32/59280_2.png) [@Suhani\_Bhatt](https://community.n8n.io/u/Suhani_Bhatt)\
**Post date:** [March 31, 2025, 10:29am UTC](https://community.n8n.io/t/switch-workflows/94996/3 "2025-03-31T10:29:24Z")

</div>

ok I got your point, I connected my email agent as a tool but now its giving me this error : Expected to find the prompt in an input field called ‘chatInput’ (this is what the chat trigger node outputs). To use something else, change the ‘Prompt’ parameter

---

<div class="post-metadata">

**Author:** ![jcuypers](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jcuypers/32/54965_2.png) [@jcuypers](https://community.n8n.io/u/jcuypers)\
**Post date:** [March 31, 2025, 10:32am UTC](https://community.n8n.io/t/switch-workflows/94996/4 "2025-03-31T10:32:53Z")

</div>

Hi, Please refer to the templates for working examples and how you may incorporate them into your solution. This is a community support to help with specific issues, not a complete solution design. You might want to consult some of the experts if you want a solution built for you.

Reg,  
J.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [June 29, 2025, 10:33am UTC](https://community.n8n.io/t/switch-workflows/94996/5 "2025-06-29T10:33:26Z")

</div>

Closed on June 29, 2025, 10:33am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
