could you please explain what you mean by a webhook with a query parameter and a router? Maybe share some screenshots and/or code blocks of the current webhooks you are sending and what you are trying to send?
I’m referring to solution where you couple 2 functions to same webhook address but add a custom query parameter so to detect which function triggered the webhook. (this works fine if you only need one of two functions to run once, but not if you need both functions to run in succession), for some reason it can’t trigger the same webhook / run the same scenario a second time (maybe because a webhook response was already fired?)
Thanks you for your reply, It looks like the intent of my original question got diluted by screenshot I provided, showing variable setting. Let me give a simplified example that I’ve build to support original question:
Imagine an openAI Assistant called “Search Assistant” with 3 functions:
search_subject_data
search_subject_images
return_subject_search_results
and instructions to search the web for given subject and return search results in json format containing:
Subject name
Subject description
Subject Photo
Subject category
in Make scenario called “Search Assistant Trigger”, we add module to call openAI assistant and configure it so each of assistant’s functions is assigned a unique webhook/scenario per function.
Function search_subject_data triggers triggers webhook in scenario “SerpApi Google”
Function search_subject_images triggers webhook in scenario “SerpApi Google Images”
Function return_subject_search_results triggers webhook in scenario “Search Assistant Results”
Then we we call the agent and give it a search subject (let’s say subject = “cat”)
what then happens is that Agent calls both serpApi scenarios and finally calls the results scenario’s to successfully come up with search results.
So far so good and I could be happy with this solution, However, in my attempt to improve this solution, I attempted to combine the 2 search webhooks/scenario’s into 1.
So imagine the same solution but instead:
Function search_subject_data triggers triggers webhook in scenario “SerpApi Search” with query parameter “Google Search”
Function search_subject_images triggers webhook in scenario “SerpApi Search” with query parameter “Google Image Search”
What I would expect to happen is that assistant cycles through “SerpApi Search” scenario twice, (1 cycle per function)
But in reality, it calls the “SerpApi Search” scenario only once and seems to return results only based on function search_subject_data (only based on organic results called by search_subject_data function, not based on image results based on search_subject_images function)
@samliew yes that was exactly it
I already had a suspicion that I was overlooking something obvious but just couldn’t figure it out: I was using “Run Once”, on all my (turned off) scenarios which literally only let’s them run once . If I turn on the SerpApi Search ” scenario and run the trigger scenario manually once, the search scenario is indeed called twice.
Thank you for finding the solution