Non-Coder: Trouble Passing Disaster Data from HTTPS to Set Variable Module

Hi everyone,
I’m building an app to help at work and have run into an issue with my scenario involving the HTTPS and Set Variable modules. Here’s a summary of the setup and the problem:
• Workflow: I send a person’s location (and other data) to the scenario via a webhook.
• HTTPS Module: Downloads real-time disaster data from the GDCAS website (as shown in my attached screenshot, items 1-6 are populated with current disaster data).
• Set Variable Module (DisasterStatusText): This module is supposed to process the data and generate a status message.
The Issue:
No matter what location I enter (e.g., “Australia”), even when the HTTPS module clearly receives relevant disaster data (like forest fires in Australia), the Set Variable module always returns:
“No major disasters currently reported in this location.”
This message is then passed to the OpenAI module, regardless of the actual data received.
Any advice on troubleshooting this scenario would be appreciated.
I’ve attached screenshots of my scenario, module configurations, and the relevant code for reference.
Thanks in advance for your help!

I am not a coder and am working on this app with the help of AI tools. My background is in medical and emergency services, so any advice in plain language would be greatly appreciated!





Hey Jarek,

what is the formula in the set variables module supposed to be checking for? Cause at the moment its not really doing anything and will always output the fallback.

Hi Stoyan,
Thanks for your quick reply!
Basically, I want the Set Variable module to check for data from HTTPS. In the “HTTPS Outcome” screenshot, there is a list under “Item” (1, 2, 3, 4, etc.), and each of these numbers contains data about real-time disasters around the world (for example, a green forest fire alert in Australia). After the HTTPS module, the Set Variable module should check for country names from the HTTPS data and send information to the OpenAI module, with either “Disaster reported in this location” or “No major disasters currently reported in this region.”
Regarding 1.data.fields3value, this refers to the webhook module. It takes information about the patient from the Tally form, where position number 3 is the patient’s location in the world.
The problem is that the Set Variable module always returns “No major disasters currently reported in this region,” regardless of whether there is a disaster in the HTTPS data or not.

I tried to fix it in multiple ways but no results unfortunately.

Thanks a lot,

Jarek

Hi @Jarek1,

If you need to process each item separately, I recommend using an iterator and mapping the highlighted fields accordingly.
Also, I’m not entirely clear on the logic you’re trying to implement in the “Set Variables” step. Could you clarify?

Let me know if this works for you or if you need further assistance.
If this helps, please consider marking it as the solution. :+1:

1 Like

So the way Make is setup is there is no position 0, it starts from 1. So essentially its trying to see if anything in the title array matches the country that is coming from the webhook?

Thank you, for your help and for the solution!