How can we share he response from one agent to other agents in single request #5609
arunc700
started this conversation in
Show and tell
Replies: 1 comment
-
|
Great question! Here's a pattern that enables multi-agent collaboration: Shared State PatternInstead of direct agent-to-agent messaging, use a shared state object: const state = {
task: "Analyze and summarize report",
agents: {
researcher: { output: null, status: "pending" },
writer: { output: null, status: "pending" },
reviewer: { output: null, status: "pending" }
}
};
// Agent 1 (Researcher) writes its output
state.agents.researcher.output = researchResult;
state.agents.researcher.status = "completed";
// Agent 2 (Writer) reads previous agent's output
if (state.agents.researcher.status === "completed") {
const context = state.agents.researcher.output;
state.agents.writer.output = writeContent(context);
state.agents.writer.status = "completed";
}Why This Works
For Flowise SpecificallyYou could:
This is called the stigmergy pattern — coordination through shared environment. More examples: https://github.com/KeepALifeUS/autonomous-agents |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am working on use cases where multiple agents are involved, and each agent has its own responsibility. In some scenarios, a single agent is not sufficient to provide all the required information, so agents need to communicate with other agents to complete a pending response.
Currently, I have developed a small proof of concept (PoC) that supports communication with a single agent. Is there anyway in flowise which help my usecase?

Beta Was this translation helpful? Give feedback.
All reactions