Evening - I originally setup a webhook based on the original video and it worked fine. I tried the the Make.com Action and cloned it - made the changes such as adding in the webhook etc.
When I add in my prompt, the webhook does not trigger.
Need a tut on how to use this on the Make scenario.
def basic_make_webhook_copy(data: str):
“”"
Sends a basic request to a make.com webhook
Args:
data (string): This is the data that should be sent to make.com
Envs:
MAKE_COM_WEBHOOK (string): Webhook link from Make.com
"""
make_url = os.environ["MAKE_COM_WEBHOOK"]
data_to_send = {
"data": data
}
try:
response = requests.post(make_url, json=data_to_send)
# Check for successful response
if response.status_code == 200:
return f"Successfully sent data. Response: {response. text}"
else:
return f"Failed to send data to Make. Status code: {response.status_code}, Response: {response.text}"
except Exception as e:
return f"An error occurred: {str(e)}"
I have tried it with and without the actual webhook where it says Make Webhook as I was unsure if it need to be there or not.