Merging multiple Router branches into one Discord module to avoid duplication

What are you trying to achieve?

Hello everyone,

I’m currently learning and practicing Make.com by building a custom integration to send notifications to Discord based on events from my Bitbucket workspace.

Here’s the scenario I’m working with:

As shown in my first screenshot, I have a Bitbucket module that triggers on workspace events. After that, it connects to a Router, which splits the flow into four different paths based on specific filters (conditions):

PR created

PR approved

PR accepted or declined

PR commented

Currently, each of these paths ends with its own Discord “Send a Message” module. However, as shown in my second screenshot, my goal is to consolidate these four Discord modules into just one to avoid redundant configurations.

My desired logic is quite straightforward:

I have one common variable (msg_common_info) set before the router.

After the Router splits into four paths, I determine another variable (msg_detail) based on the filter (one of “PR created”, “PR approved”, “PR declined”, “PR commented”).

Finally, I’d like to concatenate these two variables (msg_common_info + msg_detail) into a single string, and then send it via a single Discord module.

The problem is that after splitting via Router and Filter, I can’t seem to merge these paths back into a single module. I feel like I’m essentially trying to replicate an “if-else” statement where multiple branches determine a single outcome, without redundant steps.

Is there a clean or recommended approach in Make.com to achieve this? I’m trying to avoid repeating the same module multiple times.

Thanks in advance for any insights or solutions!

Screenshots: scenario setup, module configuration, errors


Hey there,

if you are only sending a single message anyways, why do you need the different routes to begin with? What’s the difference between them?

If all you are looking for is an if-else statement, just use the if() formula directly in the discord module. Or if you want different outputs depending on the input, use the switch() formula.

Hello

Yes, I’m considering switch. Thank you.

Welcome to the Make community!

If you need further assistance with simplifying your scenario, please provide the following:

1. Relevant Screenshots

Could you please share screenshots of module settings (fields), relevant filter settings (conditions), and module output bundles. We need to see what you’re working with to give you the best advice.

You can upload images here using the Upload icon in the text editor:

2. Scenario Blueprint

This is optional but it would really expedite assistance as we can simply make the changes and take screenshots for you.

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

3. Output Bundles of Modules

This step is also optional, but it will help us determine what can be combined.

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved, and help you with mapping the raw property names from collections.

Sharing these details will make it easier for others to assist you.