CrewAI Agent + Task
AI-generatedSummary
Builds a JSON object combining a CrewAI agent configuration and a single task specification for use in workflows.
Inputs
- Agent Role (required) — Defines the role name of the CrewAI agent.
- Agent Goal (required) — Describes the primary goal or objective of the agent.
- Agent Backstory (required) — Provides background information or context about the agent.
- LLM (required) — Specifies the large language model identifier that the agent will use.
- Agent Tools — Comma-separated list of tool names available to the agent.
- Verbose — Boolean flag to enable detailed logging or output from the agent.
- Allow Delegation — Boolean flag allowing the agent to delegate tasks.
- Respect Context Window — Boolean flag indicating if the agent respects context window limitations.
- Memory — Boolean flag enabling memory features for the agent.
- Agent Extra Fields — Additional custom JSON fields to extend the agent configuration.
- Task Description (required) — Text describing the task the agent should execute.
- Expected Output (required) — Description of the expected result or output from the task.
- Async Execution (required) — Boolean flag indicating if the task should be executed asynchronously.
- Output Format — Specifies the desired output format of the task result, e.g., 'json'.
- Task Tools — Comma-separated list of tool names available to the task.
- Add Context — Boolean flag to include context identifiers in the output.
- Context ID — Context identifier string, auto-generated from Agent Role and used when Add Context is enabled.
- Context — Comma-separated list of context IDs to associate with the task when Add Context is enabled.
- Task Extra Fields — Additional custom JSON fields to extend the task specification.
Output shape
a list of JSON objects, each containing an 'agent' object and a 'tasks' object representing the combined CrewAI agent and task definition, optionally including context fields if enabled.
Each input item produces one output item; 'agentExtras' and 'taskExtras' are merged into the respective agent and task objects. Context identifiers are included at the root level only if 'Add Context' is true.
Examples
Example 1: Create a CrewAI agent named 'DataAnalyzer' with goal and backstory, specifying GPT model and tools, and assign a task with a description and expected output in JSON format.
Set required agent fields ('Agent Role', 'Agent Goal', 'Agent Backstory', 'LLM'), specify optional tools and flags, set required task fields ('Task Description', 'Expected Output', 'Async Execution'), add optional task tools and context if needed.