# Passing multiple different input different to agents in same crew

**URL:** https://community.crewai.com/t/passing-multiple-different-input-different-to-agents-in-same-crew/4263
**Category:** Crews
**Tags:** crew
**Created:** [February 28, 2025, 10:48am UTC](https://community.crewai.com/t/passing-multiple-different-input-different-to-agents-in-same-crew/4263 "2025-02-28T10:48:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![francis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/francis/32/2813_2.png) [@francis](https://community.crewai.com/u/francis)
#### Post date: [February 28, 2025, 10:48am UTC](https://community.crewai.com/t/passing-multiple-different-input-different-to-agents-in-same-crew/4263/1 "2025-02-28T10:48:17Z")

</div>

[Flow.\_execute\_single\_listener] Error in method second\_method: Something went wrong. Kickoff should return only one task output.  
Traceback (most recent call last):  
raise ValueError(  
ValueError: Something went wrong. Kickoff should return only one task output.  
The error occurs whenever I try to pass multiple inputs inside a Crew, which are assigned to different agents. Additionally, the output of either agent is not useful for the Crew, leading to the issue.

This error indicates that the `kickoff` method in CrewAI expects a single, consolidated output, but it is currently receiving multiple outputs from different tasks.

I have also used a planning agent and set the process to be hierarchical. Can anyone help me resolve this error?

---

<div class="post-metadata">

### Author: ![zinyando](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/zinyando/32/4435_2.png) [@zinyando](https://community.crewai.com/u/zinyando)
#### Post date: [February 28, 2025, 3:20pm UTC](https://community.crewai.com/t/passing-multiple-different-input-different-to-agents-in-same-crew/4263/2 "2025-02-28T15:20:27Z")

</div>

What do you mean when you say multiple inputs? Do you mean:

crew.kickoff(inputs={“name”: “user”, “email”: “[email@mail.com](mailto:email@mail.com)”})

---

<div class="post-metadata">

### Author: ![francis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/francis/32/2813_2.png) [@francis](https://community.crewai.com/u/francis)
#### Post date: [March 2, 2025, 12:24pm UTC](https://community.crewai.com/t/passing-multiple-different-input-different-to-agents-in-same-crew/4263/3 "2025-03-02T12:24:06Z")

</div>

yes exactly like that, the only difference is each input is interpolated in different agent , so when running the code outputs error saying crew cannot have multiple task outputs.

---

<div class="post-metadata">

### Author: ![zinyando](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/zinyando/32/4435_2.png) [@zinyando](https://community.crewai.com/u/zinyando)
#### Post date: [March 2, 2025, 12:28pm UTC](https://community.crewai.com/t/passing-multiple-different-input-different-to-agents-in-same-crew/4263/4 "2025-03-02T12:28:45Z")

</div>

Is there anyway you can share your code? There aren’t enough details to figure out what’s going on here.

I don’t think the inputs are causing the issue so it has to be something else.

---

<div class="post-metadata">

### Author: ![zinyando](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/zinyando/32/4435_2.png) [@zinyando](https://community.crewai.com/u/zinyando)
#### Post date: [March 2, 2025, 2:46pm UTC](https://community.crewai.com/t/passing-multiple-different-input-different-to-agents-in-same-crew/4263/7 "2025-03-02T14:46:19Z")

</div>

I don’t see where you are interpolating the input variables in the tasks. Are you doing that?

---

<div class="post-metadata">

### Author: ![francis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/francis/32/2813_2.png) [@francis](https://community.crewai.com/u/francis)
#### Post date: [March 2, 2025, 2:55pm UTC](https://community.crewai.com/t/passing-multiple-different-input-different-to-agents-in-same-crew/4263/8 "2025-03-02T14:55:30Z")

</div>

from your\_module import Agent, Task, Crew, Process, add\_json\_to\_vectorDB, llm\_model

# Manager Agent

manager = Agent(  
role=“Manager Agent”,  
goal=f"Manage the eligibility assessment pipeline.“,  
backstory=f"Orchestrates the structured execution flow.”,  
llm=llm\_model,  
verbose=True,  
max\_rpm=6,  
respect\_context\_window=True,  
allow\_delegation=True  
)

# Vector DB Agent

vector\_db\_agent = Agent(  
role=“Vector DB Processor”,  
goal=f"Add JSON files to the vector database.“,  
backstory=f"Ensures accurate processing of JSON content.”,  
tools=[add\_json\_to\_vectorDB],  
llm=llm\_model,  
verbose=True,  
max\_rpm=6,  
respect\_context\_window=True,  
allow\_delegation=False  
)

# Process JSON Task

process\_json\_task = Task(  
description=f"Extract content from JSON {file}and add to the vector database.“,  
expected\_output=f"JSON content from {file} successfully added to the vector database.”,  
tools=[add\_json\_to\_vectorDB],  
agent=vector\_db\_agent,  
async\_execution=False  
)

# Query Generator Agent

query\_generator\_agent = Agent(  
role=“Eligibility Query Generator”,  
goal=f"Convert structured JSON input {{response}} into a natural language query.“,  
backstory=f"Processes structured data into well-formed eligibility queries.”,  
llm=llm\_model,  
verbose=True,  
max\_rpm=6,  
respect\_context\_window=True,  
allow\_delegation=False  
)

# Query Generation Task

query\_generation\_task = Task(  
description=f"Transform structured JSON input {{response}} into a natural language query.“,  
expected\_output=f"Generated query in string format from {{response}}.”,  
agent=query\_generator\_agent  
)

# Define the Crew

crew\_one = Crew(  
agents=[vector\_db\_agent, query\_generator\_agent],  
tasks=[process\_json\_task, query\_generation\_task],  
process=Process.heirarchical,  
planner\_agent=manager,  
verbose=True  
)

# Define the input data for the crew

input\_data = {  
‘file’: ‘path\_to\_your\_json\_file.json’,  
‘response’: ‘your\_structured\_json\_response’  
}

# Execute the crew with the provided input data

result = crew\_one.kickoff(inputs=input\_data)

# Access and print the output of the crew execution

print(result.output)

#### A follow-up question: Can interpolation be used with the Planner Agent (Manager Agent in this case) to make decisions on passing the input to the right agent?
