Get my project assistants to talk to each other

Is it possible to have the defined assistants talk to each other without using an API? The idea is to have a main assistant that, depending on the topic, consults with other assistants and provides the answer to the user.
However, I want to be able to indicate in the main assistant’s prompt that it should consult with the rest of the assistants.

1 Like

Hi,

You could finagle something like this with function calling, however, the Assistants endpoint is being depreciated in favor of the Responses API and Agents. I would stop trying to figure this out using Assistants.

Otherwise, you can have your primary chat Agent have in it’s prompt to use a function call to “consult” another agent or process when it receives something related to your chosen topic, does something with that information (like thinks about it), and responds in a given format; they also have “handoffs” which are related.

Function Calls are available in the playground where you can work with them.

However, all of this is already the “api.” You can work with function calls in the OpenAI playground without needing to code… but much of the advanced intra-agent operations are still only possible programmatically.

Thank you very much for your response. How would you define a function so that, when Assistant “A” needs to answer a question about the price of a product, he asks Assistant “B”? And then Assistant A responds to the user with what Assistant “B” told him?

1 Like

Yes you’re right :+1:t3: I also noticed that.