Task as a Tool
Updated
The Task as a Tool feature allows an AI Agent to call and execute a child task from within a parent workflow. This configuration enables modular task design, where one task can delegate specialized parts of a conversation to another task while maintaining context continuity.
By configuring summary prompts, the parent and child tasks can exchange summarized context, ensuring that information is preserved without overwhelming detail.
Steps to Configure Task as a Tool
Follow the steps below to configure Task as a Tool:
Access Task as a Tool
Navigate to AI Agent Studio from the Sprinklr Launchpad.
Select the AI Agent where you want to add this tool.
Expand the Build section and open Tools.
Click + Add Tool and select Task as a Tool from the list.
Define Basic Details
Name: Enter a unique name to identify the tool. Example: Task_test.
Description: Provide a description of its purpose. Example: Use this when the user wants to call a child task.
Select Tasks
Under Tasks, select the child task that should be invoked from the parent workflow.
Configure Conversation Summaries
To maintain context between tasks, configure the summary prompts:Parent Task Conversation Summary Prompt
Defines how the parent task conversation is summarized before control is handed to the child task.
Child Task Conversation Summary Prompt
Defines how the child task conversation is summarized before control returns to the parent task.
Save Configuration
After completing the setup, click Save.
The configured tool will now appear in the Tools Record Manager and can be integrated into your AI Agent workflows.
Best Practices
Clearly name both parent and child tasks to avoid confusion in larger workflows.
Use concise but descriptive summary prompts to ensure smooth context transfer between tasks.
Test the configuration with sample interactions to validate that the child task is invoked correctly and that summaries flow back to the parent task as expected.
Avoid overlapping responsibilities between parent and child tasks to keep workflows modular and maintainable.