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

1

Prepare HTTP Request Data

Before configuring your Make scenario, ensure you have the following details:

1

Thnks API URL

https://api.thnks.com/api/v1/gift_requests

2

HTTP Method

POST

3

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:

{  
  "gift_id": <GIFT_ID>,  
  "recipients": [  
    {  
      "email": "{{email}}",  
      "first_name": "{{first_name}}",  
      "last_name": "{{last_name}}",  
      "message": "Thank you for your time and support!",  
      "gift_redeem_type": "email"  
    }  
  ]  
}  
  • 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.

4

Headers

You will need to add the following headers in the HTTP module:

  • Content-Type: application/json

  • Authorization: Your Thnks API key (Authorization Token).

2

Create a Scenario in Make

1

Log into Make and Create a New Scenario

Open Make, click + Create a new scenario, and start building your automation.

2

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.

3

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.

4

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.

3

Test and Activate the Scenario

1

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.

2

Check Execution History

Review the execution history in Make to confirm that the API call was successful and the Thnks gift was sent.

3

Activate the Scenario

Once verified, turn on the scenario to enable automated Thnks sending.

4

Best Practices

1

Error Handling

Use error-handling features like routers or custom error paths to handle failed API calls.

2

Security

Store your API key securely using the Data Stores or Environment Variables feature in Make. Avoid hardcoding sensitive data in modules.

3

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.

References