To connect 2 text aggregators (from two different branches) to one AI Agent (run and agent) module
What is the problem?
Please see my screenshot. I had to put a router in to collect two different sets of data from airtable (search records). I want to be able to connect the text aggregators from each branch to a single Make AI Agent (run an agent) scenario, but it will not let me do the drag and connect feature with more than one of the text aggregators which means the AI agent module cannot choose from the text aggregator on the bottom. Any suggestions for this problem
What have you tried so far?
I’be tried doing the drag and drop feature a million times. Just does not work
Use “Magic Formula” e.g., create variables after each route finishes and get variables on last route.
Use sequential flow
It’s simple - you are not using router but connect all modules in one flow so search → aggregate → search → aggregate → call AI
Use variables
This is a much cleaner and scalable solution but also operation-consuming.
You can find it by phrase 'Make magic formula"–> explanation video
How to use it:
On route 1, right after aggregator, add create multiple variables* module and store aggregator result as variable.
Repeat it on route 2.
Add route 3 with get multiple variables module and connect it to AI agent.
Have a nice day,
Michal
*Why use create multiple variables? It uses the same amount of operations, but in case you ever need to add another variable, you don’t have to change the module and re-map everything
Soon they will have a merge module.
Right now, you can use the set/get variable for that.
In the route that doesn’t connect to the agent, set a variable with the data you need.
In the branch that does connect to the agent, use get variable with the variable name from the other branch.
Then map both the variable and the data you get from the branch that does connect to it to the agent.
Make sure the route that doesn’t connect is executed before the branch that does connect.
Use the router’s reorder to make this happen.
Do you have a question that is not about "I need to connect two branches to one module"? Please start a new topic.
Creating a separate topic for each question makes it easier for others with the same problem to search for answers. You are also more likely to receive help sooner as new topics are displayed first on the forum’s “new” page!
Links & Guides
Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I’d also recommend going through the Make Academy if you haven’t yet!