Skip to main content
The Shopify Custom Action connects your Agent to your Shopify store so it can retrieve product, order, or fulfillment information and use it when answering customer questions. This setup includes:
  • A predefined OpenAPI schema for Shopify
  • API key authentication
  • The required Shopify store BaseURL
  • A health check configuration
After setting up the Action, you can validate it, activate it, and test it in the Playground. You can also adjust the schema later if you want to add or change Shopify endpoints.

Set up the action

  1. Go to Actions in Watermelon.
  2. In the Actions catalog, click Custom action.
  3. Click Create new Action.
  4. Fill in the fields below.

General details

Action name
Shopify order status
Description
This action lets you get status information from your orders and use it in your chatbot when customers ask for it.
BaseURL
[YOUR SHOPIFY STORE URL]
Enter the URL of the Shopify store you want to connect.

Authentication

For Authorization Header, select API key. For Auth Type, select Bearer. Token
Enter your Shopify access token.

Extra headers

Add the following extra header: Header name
X-Shopify-Access-Token
Header value
bearer

Health check

Health check URL
https://www.yourdomain.com/health_check
Replace this URL with the health check endpoint you want Watermelon to use. Instruction
You should respond with the following message or a similar variation: Sorry, something went wrong on our end. Can I assist you with anything else? Please let me know how I can help.

Schema

Paste the Shopify schema into the Schema field:
Click Validate. When the schema is valid, Watermelon should show the available actions, including:
  • Get a Single ProductGET /products/{product_id}.json
  • Get a Single OrderGET /orders.json

Example in Watermelon

Shopify Action Template 1
When everything is configured correctly, click Save and then Activate. Finally, test the Action in the Playground to make sure your Agent can retrieve the expected Shopify data.

Editing an Action Template

After setting up an Action, you can adjust it to your use case. For example, you can add endpoints to the schema, change parameters, or update the name and description. Be careful when changing authentication settings or existing endpoints, as this can prevent the Action from connecting to the API.

Troubleshooting