Make.com

Learn how to create scenarios using Unipile with Make.com.

Make triggers with Webhooks

Let say we want to initiate a scenario when a new email is received.

  1. Set your first node as Webhooks > Custom Webhook
  1. Click on Create a webhook or Add
  2. Give a Webhook name to describe what event will be received. For example Unipile - email.new. Then hit Save.
  1. Now, Make.com is waiting for a first event to confirm everything is working. Let's send the event:
    1. Click on Copy address to clipboard
    2. In Unipile's Dashboard, Add Endpoint from the Webhooks tab.
    3. Paste the copied value to Endpoint URL.
    4. Select the event(s) that should trigger the Webhook. For this example, select email.new. Then save by hitting Add Endpoint.
    5. Refer to Test & Debug webhooks to send a Test event.
    6. You should now see Successfuly determined. in the node configuration.
  2. You can now use data from the payload of the webhook in the following nodes of your scenario.


Make actions with Methods

  1. Create a node HTTP > Make a request
  1. Select API Key as Authentication type.

  2. If you don't have one for Unipile, create a new keychain in Credentials:

    1. Create an API Key in Unipile's dashboard
    2. Copy paste it in Key
    3. Give it a name
    4. Set API key placement as In the header
    5. Set API Key parameter name as X-API-KEY

  1. Find the method you want to use in the API Reference
  2. Set the proper URL and HTTP request method. For this example, we'll use Send a Message : set https://api.unipile.com/v2/account_id/chats/chat_id/messages/send as URL and POST as Method. Of course, set account_id and chat_id to your needs. Note that they can be dynamically retrieved from other nodes, refer to the Make.com documentation to learn about that.
  1. If you need to pass Query Params, place them in Query parameters. For exemple the offset of List all Chats :
  1. If you need to pass Body Params, set Body content type as application/json and Body input method as JSON string. Then, set Body content as a JSON. To make it easier, from the API Reference method page :
    1. Set the language to "Shell"
    2. Fill the values in the Body Params list
    3. Copy the json from the code snippet on the right side
    4. Paste in in Body Content
  1. Refer to the Make.com documentation to handle the result.

Control cache on requests

Unipile support the Cache-Control standard request header and few of its directives to control the Caching when you make a request on Methods API. You can add this header on your node configuration: