Unable to get a variable

Hi,

In this image, I’m trying to take the variable in module 22 and use it in module 3.

What happened is that, after-the-fact, I decided to put the prompt in a variable and reuse it in my LLMs instead of putting the prompt directly into the module.

However, when I try to use the variable, I can’t because I don’t see it:

Is this because I created the Set Variable module much later? I unlinked and relinked everything to make sure the set variable module was used first. Still…

What am I not understanding?

Thanks,

L

Hey @L_Duperval

Use ‘Get Variable’ in the route where you want to use the value of ‘Set Variable.’

This is also explained in the Router Magic formula video.

For more information, see below

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!

Hi,

THnks to both of you for the reply.

Here is what it looks like now:

But the array aggregator doesn’t see the set multiple variables module:

In fact, if I create any new route in my scenario and add a module to it, the module can only see the webhook. So is the structure of my scenario wrong? I.e. if I want to do anything with the webhook data, I need to create that setup before my first router?

L

As a test, I did just that. I put the set multiple variables before my router and now I can use the values in the rest of my scenario.

Is this specific to using webhooks? Or a (not so) subtle aspect of Make that I’m not understanding?

L

@L_Duperval

If you want to use the value of a set variable in other routes, you have to use a get variable at the start of the route so it will be accessible for the next modules.

Hmm… That’s what I thought I did:

But in modules 3, 7, and 8, I can’t access module 22.

However, if I move the router (module 22) before my router, then I can access the content.

So I have a way of doing it but it doesn’t seem right to me.

L