Make.com - failing to fire wwebhook

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.

Hi @ihmunro, please paste the code you modified on the chat

Hi There

Here it is

import os
import requests

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.

Have you tested your webhook in postman? Try this to eliminate any issues there. The next thing I would test is the trigger prompt.

@ihmunro the code is correct. A couple of suggestions:

  1. Make sure you enter the correct webhook link from Make in the environment variables section under value.

image

  1. In Make, press the “redetermine data structure” button and run the action in Pickaxe

image

  1. You should get a “successfully determined” message if the Pickaxe correctly sends the information. The webhook is now ready to be used.

image

1 Like