Make (formerly Integromat)
This integration allows you to set up a scenario in Make that automatically triggers sending a Thnks via an HTTP module.
Configuring Make to Automatically Send a Thnks
This guide walks you through automatically triggering the sending of a Thnks using Make scenarios.
Prerequisites
-
Access to the Thnks API.
-
Thnks API Key (Authorization Token).
-
URL for Thnks API endpoint.
-
Administrative access to your Make account.
Setup
Prepare HTTP Request Data
Before configuring your Make scenario, ensure you have the following details:
Thnks API URL
https://api.thnks.com/api/v1/gift_requests
HTTP Method
POST
Data (JSON format)
Here’s an example of the JSON payload you will need to include in the HTTP module. Replace the placeholders with dynamic data from Make variables:
-
Replace
<GIFT_ID>
with the Thnks ID of the gift you want to send. -
Use Make variables (e.g.,
{{email}}
) to dynamically populate recipient data from earlier modules in the scenario.
Headers
You will need to add the following headers in the HTTP module:
-
Content-Type:
application/json
-
Authorization: Your Thnks API key (Authorization Token).
Create a Scenario in Make
Log into Make and Create a New Scenario
Open Make, click + Create a new scenario, and start building your automation.
Choose a Trigger Module
Select a trigger module to define the event that starts your scenario. Examples include:
-
Webhook: Use the Custom Webhook module to start the scenario via an external webhook.
-
App-Specific Trigger: Select a trigger from supported apps like Salesforce, HubSpot, or Google Sheets.
-
Scheduled Trigger: Use the Scheduler module to run the scenario at regular intervals.
Add an HTTP Module
-
Add the HTTP module to send the Thnks request.
-
Configure the HTTP module as follows:
-
Method:
POST
-
URL:
https://api.thnks.com/api/v1/gift_requests
-
Headers:
-
Content-Type:
application/json
-
Authorization: Enter your Thnks API Key.
-
-
Body: Copy the JSON payload mentioned above and replace placeholders with Make variables.
-
-
Save the module configuration.
Add Additional Modules (Optional)
Use additional modules to customize the scenario, such as:
-
Filters: Add a filter to control when the HTTP module executes based on specific conditions.
-
Data Transformation: Use the Set Variable or Text Parser modules to manipulate or transform data.
-
Error Handling: Add a Router module to handle errors or log failed requests.
Test and Activate the Scenario
Run the Scenario in Test Mode
Use Make’s test mode to run the scenario with sample data and verify that the HTTP module sends data correctly to the Thnks API.
Check Execution History
Review the execution history in Make to confirm that the API call was successful and the Thnks gift was sent.
Activate the Scenario
Once verified, turn on the scenario to enable automated Thnks sending.
Best Practices
Error Handling
Use error-handling features like routers or custom error paths to handle failed API calls.
Security
Store your API key securely using the Data Stores or Environment Variables feature in Make. Avoid hardcoding sensitive data in modules.
Testing
Test the scenario with various data inputs to ensure all variables, conditions, and modules function as intended.
Following this process, you can automatically trigger a Thnks gift to be sent as part of a Make scenario using the HTTP module.