Skip to main content

Interakt

Use Interakt to perform various operations such as sending simple messages of type (text, image, video, document, etc), sending template messages along with multimedia of type(image, document, video, etc).

Prerequisites​

To use Interakt, you need an interakt account and API credentials (API Key) to access Interakt's API. You can obtain your credentials by creating an application in your Interakt account.

Supported Authentication Methods​

  • API Key (provided by interakt)

Basic Operations​

Send Message​

  • NOTE: If we are not using templates to send messages then we cannot send the message to a customer if customer didnt't communicated with us in last 24 hrs, this is as per WhatsApp business restriction i.e. 24hr window policy.

  • Send Text Message: Send a text message to a customer.

  • Send Image Message: Send an message with an image to a customer.

  • Send Document Message: Send a message with a document to a customer.

  • Send Video Message: Send a message with a video to a customer.

  • Send Button Message: Send a message with button to a customer.

  • Send List Message: Send a a list of messages as a single message to a customer.

Send Template Message​

  • Send Template Message: Send a template message with no header to a customer.

  • Send Template Message: Send a template message with text header to a customer.

  • Send Template Message: Send a template message with document header to a customer.

  • Send Template Message: Send a template message with an image to a customer.

Passing multiple template variables​

Add one row under Template Body Variables for each body placeholder, in template order. Enter the complete value in each row. For example, the first row can contain Ahmed Sakri, the second Order #1234, and the third Mumbai, India. Spaces and commas stay inside their row, and repeated values are kept.

The integration converts these rows to Interakt's required array of strings:

{
"bodyValues": ["Ahmed Sakri", "Order #1234", "Mumbai, India"]
}

The first array item fills the first body placeholder, the second fills the second, and so on. The number of values must match the selected template's body placeholders. Dynamic inputs can also supply a string array directly. Leave the variables empty for a template with no body placeholders.

Existing workflows keep their original values under Saved Body Variables. Those values are used until you add rows under Template Body Variables; the new rows replace the saved list in the request. To switch an existing workflow to a template with no body placeholders, clear both the rows and the saved values.

Enter one complete text value for a text header, or one publicly accessible URL for an image or document header. The integration sends it as a one-item headerValues array.

When sending a template through Custom API, use POST with https://api.interakt.ai/v1/public/message/ and a JSON body such as:

{
"fullPhoneNumber": "919998884441",
"type": "Template",
"template": {
"name": "your_approved_template",
"languageCode": "en",
"bodyValues": ["Ahmed Sakri", "Order #1234", "Mumbai, India"]
}
}

Use your recipient's phone number, approved template name, language code, and matching variable values. Keep bodyValues as a JSON array rather than comma-separated text or a quoted JSON string. The Custom API operation adds the authentication header from the selected Interakt account.

See Interakt's Template API documentation for the request format. The integration uses Boltic's Array component and body transformation to preserve each variable as a separate string.

Create Campaign​

  • Create Campaign: Creates a campaign using a provided template.

Fetch Customer​

  • Get All Customers: Fetches all the customer's of an organization created in specific range of dates.

Chat Assignment​

  • Assign An Agent: Assign's an agent to a particular chat with a particular user. (Uses wc_id)

Track APIs​

  • Create User In An Organization: Creates a user in an organization.

  • Create Event: Creates an event(s) based on certain activity performed by user.

Further Reading​

For more information on the Interakt API and detailed steps to implement these operations, refer to the Interakt documentation.

For postman collection refer to the following link: (https://documenter.getpostman.com/view/14760594/2sA2r7zibM)