I need to connect two branches to one module

:bullseye: What is your goal?

To connect 2 text aggregators (from two different branches) to one AI Agent (run and agent) module

:thinking: 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

:test_tube: What have you tried so far?

I’be tried doing the drag and drop feature a million times. Just does not work

:camera_with_flash: Screenshots: scenario setup, module configuration, errors

Hey there,

Yeah that’s not how Make works, you can’t go back to one route after splitting the flow.

Do you need the router though? Just have the two sets of modules one after the other.

2 Likes

Hello,

You have two approaches here.

  1. Use sequential flow
  2. 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 :slight_smile:

2 Likes

No, you do not need a router for this. Simply place them in series. As long as you have an aggregator after each search module, you’ll be fine.

Hope this helps! If you are still having trouble, please provide more details.

— @samliew

2 Likes

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.

Let me know if this helps

1 Like

Oh, that’s simpler than I was making it :slight_smile: . Thank you all for your quick responses!

1 Like

Thank you for letting us know!

If your problem was solved, please mark the helpful response to help others with similar issues!

1 Like

No problem, glad I could help with your question:
"I need to connect two branches to one module"   :tada:

1. Which was the most helpful post in this thread?

The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep this forum organised. :folded_hands:

This marks the topic as solved, so that others can:

  • save time when browsing the latest activity on the forum, and
  • quickly jump to the solution in this topic (from the top)

To do this, simply click the checkbox at the bottom of the post that is the most helpful in answering your question.

a screenshot of post menu options at the bottom of each post
:link: Here’s a magic link to a list of your other “unsolved” topics— status:unsolved

2. Have you learnt something new?

Do bookmark this topic so you can easily find and return to this topic in future.
a screenshot of bookmark link at the bottom of the topic

:link: Here’s a magic link to a list of your bookmarks— /my/activity/bookmarks

3. Have a different question? Start a new topic.

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!

Learn Make

How-Tos

— @samliew

2 Likes