Stuck Automating a Quote with Make for 10 Hours

Hey everyone,

I’m struggling hard with a Make scenario and honestly losing my mind. I’m trying to automate a Google Docs quote generation based on form data stored in Supabase (quote_logic, engagement duration, IA modules selected as an array).

:wrench: What I’m trying to do:

  1. Retrieve data from a Supabase GET HTTP request (data is coming through fine :white_check_mark:)
  2. Use an Iterator to process each lead
  3. Dynamically calculate:
  • monthly_price (based on pack + duration)
  • setup_price (based on selected modules in an array)
  • total_price = monthly + setup
  1. Generate a Google Docs file using a template

:cross_mark: What I’ve tried (and failed):

  • Used Set variable module with if(contains(...)) logic → Make doesn’t evaluate the condition, it just dumps the formula as text.
  • Tried Math > Expression – but I’m struggling to make it understand nested logic.
  • Mapped everything correctly from the Iterator – data is there.

Biggest issue:
Every time I use something like length(parseJSON(conversion_modules)), Make either crashes or literally writes the formula string into the doc instead of the result.


:red_question_mark:What I need help with:

  • A working example of a calculation using if, length, contains, etc.
  • Clear guidance on where to place those modules so the result is evaluated BEFORE the Google Docs module
  • OR even better: a working scenario I can adapt – I’m happy to copy/paste and tweak.

:folded_hands: Huge thanks in advance – I’m open to paid help at this point, seriously.

ps : my last error is : The operation failed with an error. Syntax error in part " if(engagement_duration == 3, 390, if(engagement_duration == 6, 351, if(engagement_duration == 12, 312, 0))), if(quote_logic == “Pack Pro PME”, if(engagement_duration == 3, 890, if(engagement_duration == 6, 801, if(engagement_duration == 12, 712, 0))), if(quote_logic == “Pack Performance”, if(engagement_duration == 3, 1290, if(engagement_duration == 6, 1161, if(engagement_duration == 12, 1032, 0))), if(quote_logic == “Conversion”, if(length(parseJSON(conversion_modules)) == 1, 90, if(length(parseJSON(conversion_modules)) == 2, 140, if(length(parseJSON(conversion_modules)) >= 3, 190, 0))), if(quote_logic == “Visibilité Digitale”, 190, 0) ) ) ) )" (char 39)

1 Like

Hi @Valentin1

If you could share the output bundle of the http module and point out what output you actually want we can further assist you

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

1 Like