# Is it possible to execute the tasks basing on the intent of the user input?

**URL:** <https://community.crewai.com/t/is-it-possible-to-execute-the-tasks-basing-on-the-intent-of-the-user-input/2782>\
**Category:** CrewAI Community Support\
**Created:** [January 13, 2025, 10:38pm UTC](https://community.crewai.com/t/is-it-possible-to-execute-the-tasks-basing-on-the-intent-of-the-user-input/2782 "2025-01-13T22:38:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivakumarl](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sivakumarl](https://community.crewai.com/u/sivakumarl)\
**Post date:** [January 13, 2025, 10:38pm UTC](https://community.crewai.com/t/is-it-possible-to-execute-the-tasks-basing-on-the-intent-of-the-user-input/2782/1 "2025-01-13T22:38:46Z")

</div>

Hi Team,  
I am trying to build the crew and configured with multiple tasks, where the agent should call task basing on the intent of the user input, For example my crew was configured with task plan\_status and plan\_benefits, when user intent to get the status of the plan then execute only plan\_status task and if intent is to get status and benefits execute both tasks and if intent is out of the context then don’t execute any task. Please guide on how to implement this. Thanks

Regards,  
Siva Kumar.

---

<div class="post-metadata">

**Author:** ![joab.io](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/joab.io/32/2143_2.png) [@joab.io](https://community.crewai.com/u/joab.io)\
**Post date:** [January 14, 2025, 12:07am UTC](https://community.crewai.com/t/is-it-possible-to-execute-the-tasks-basing-on-the-intent-of-the-user-input/2782/2 "2025-01-14T00:07:58Z")

</div>

I tried adding an ‘enabled:False’ in the task.yaml file just in case it worked, but it does not work. From the Docs:  
’  
It’s worth noting that CrewAI doesn’t provide a direct “on/off” switch for tasks. Instead, task execution is controlled through the overall crew configuration, process selection, and agent settings. If you need to temporarily disable a task, you would typically remove it from the tasks list when creating the Crew object or adjust your YAML configuration accordingly.  
’

I would just keep three task.yaml files and load the correct one prior to run.

A more advanced way to handle this is to have an agent fetch the data about the user intent and then use Conditional Tasks based on that intent.

From docs:

[Conditional Tasks - CrewAI](https://docs.crewai.com/how-to/conditional-tasks)
