Try out this "Custom Action Builder" Pickaxe

I built a pickaxe to help build custom actions(inside of Pickaxe) and write code.

Feel free to test it out and let me know what you think!!

https://beta.pickaxeproject.com/axe?id=Custom_Action_Builder_Pickaxeai_XF7VZ

7 Likes

This is brilliant!! I had the same idea and wondered why Pickaxe Team didn’t think of doing this. The ultimate way to confirm how powerful the Pickaxe tool is to use. Thanks for the contribution to the community.

2 Likes

Nice

This looks good.

A couple of things

What is

MAKE_ENDPOINT_URL (string): Endpoint URL for the Make.com scenario

Also, the variables are single quotes - should they not double quote?

’ v "

@compete360 thank you!

I agree that Pickaxe’s function calling opens up the entire world for functionality. Love to see what you are building sometime :slight_smile:

Thank you!

I believe that

MAKE_ENDPOINT_URL (string): Endpoint URL for the Make.com scenario

is simply the script reference to the Environment Variable for MAKE_ENDPOINT_URL. If you are looking to add your Make webhook, you can do this on the Action Details Page:

As per the quotes, I’m not sure about your specific instance, maybe someone can chime in… Is the webhook properly being called when you test through Make?

1 Like

Thanks for this, what is the difference between the endpoint and the make webhook?

For the quotes - this is what the tool output - single quotes

MAKE_ENDPOINT_URL should be the webhook url in this case.

1 Like

I am just wondering why this would need to the Make API Key as well as the Webhook

Envs:
        MAKE_API_KEY (string): API key for authenticating requests to Make
        MAKE_WEBHOOK_URL (string): The URL of the Make webhook endpoint
    """
    # Retrieve environment variables
    api_key = os.getenv('MAKE_API_KEY')
    webhook_url = os.getenv('MAKE_WEBHOOK_URL')

Will give it a go

Tried it

Got this error

Please wait while I process your information

It seems there was an error while trying to process your information. The error indicates an issue in the code. Please ensure that your name and LinkedIn profile URL are correct, and I will attempt to send the information again.

Your name: Iain
Your LinkedIn profile URL: www.linkedin.com/in/iain-munro

Let me know if you’d like me to try sending it again!

Here is the code

import os
import requests

def send_name_and_linkedin_profile_to_make(name: str, linkedin_profile_url: str):
“”"
Sends the user’s name and LinkedIn profile URL to a Make.com workflow.

Args:
    name (string): User's full name
    linkedin_profile_url (string): URL to the user's LinkedIn profile
Envs:
    MAKE_API_KEY (string): API key for authenticating requests to Make
    MAKE_WEBHOOK_URL (string): The URL of the Make webhook endpoint to receive the data
"""

# Insert your PYTHON code below. You can access environment variables using os.environ[].
# Currently, only the requests library is supported, but more libraries will be available soon.
# Use print statements or return values to display results to the user.
# If you save a png, pdf, csv, jpg, webp, gif, or html file in the root directory, it will be automatically displayed to the user.
# You do not have to call this function as the bot will automatically call and fill in the parameters.

# Retrieve environment variables
api_key = os.getenv("MAKE_API_KEY")
webhook_url = os.getenv("MAKE_WEBHOOK_URL")

# Prepare the payload
payload = {
    "name": name,
    "linkedin_profile": linkedin_url
}

# Set headers for authorization
headers = {
    'Authorization": f'Bearer {api_key}'',
    'Content-Type": 'application/json'
}

# Send the request to Make webhook
response = requests.post(webhook_url, json=payload, headers=headers)

# Check for successful response
if response.status_code == 200:
    print("Data sent successfully.")
else:
    print(f"Failed to send data. Status code: {response.status_code}, Reason: {response.reason}")