Is it possible to do diamond path?

What do I mean by a diamond path?

                ChatGPT
               /        \
Input - Router            Same response returned to client
               \ Claude /

The idea is that if I modify the response, I don’t need to modify multiple versions of the response. It also allows me to add a version for Gemini, Mistral, etc.

Thanks,

L

No you cannot converge paths like this in Make.

What you can do is use the Magic Router Formula.

See the link found below:

Links

Here are some useful links and guides to help you get started and learn more on how to use the Make platform, apps, and app modules —

General

Help Center Basics

Articles & Videos

samliewrequest private consultation

Join the unofficial Make Discord server to chat with us!

2 Likes

Thank you. I’m not sure exactly how I’ll implement it but this magic router gives me a good idea.

L

To summarize the router magic formula,

                   ChatGPT - Set variable
                 /        
Webhook - Router - Claude - Set variable
                 \
                   Get multiple variables - Combine response, return to client

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

1 Like

Yes, in my case, though, only one of the responses will be generated because of the filter after the router. So I will need generate the answer based on whichever response is non-null.

L

Then, in the final route (bottom), for the “combine response” field, you can use the built-in function ifempty

e.g.:

ifempty( gptoutput; claudeoutput )

For more information, see the function documentation in the Help Center.

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 found these useful when I was learning Make, and hope they might benefit you too —

General

Help Center Basics

Articles & Videos

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

1 Like

They are, thanks. After so many years of structured programming followed by many years of very little programming (except for the odd Tcl or bash script), this is a new world for me. Interesting and it forces me to unlearn and relearn a few things!

L