Overview
Once Attentive is connected, the Dema Agent can manage subscriptions and customer data directly inside a conversation — opt customers in or out of SMS/email subscriptions and look up subscription status by phone or email, record ecommerce events (add-to-cart, product view, purchase) that trigger Attentive journeys, set or read custom user attributes, send custom events to fire automations, and submit privacy/GDPR deletion requests. The agent only acts when you ask it to, and Dema asks you to confirm sensitive changes before they are applied.Prerequisites
- An Attentive account with access to the custom-app management page.
- A custom app created in Attentive to obtain an API key (see below).
Connect Attentive
Create a custom app in Attentive to get an API key
- Log in to Attentive and open App Marketplace → custom-app management (
ui.attentivemobile.com/integrations/custom-app/management). - Click + Create App (top-right).
- Enter an app name (e.g.
Dema Agent) and a contact email. - In Permissions, set each API the agent needs to Write (each defaults to No Access): Custom Attributes, Custom Events, eCommerce, Privacy Request, Product Catalog, Subscribers.
- Click Create.
- In the Copy API key dialog, click Copy and save the key — it is shown only once.
The API key is shown only once. If you lose it, regenerate it in Attentive (Built by you tab → open the app → API key → Regenerate) and reconnect — regenerating invalidates the old key. Treat the key like a password.
Permissions to grant
Set each of these to Write when you create the custom app so the agent can read and act on your Attentive data:| Permission | What it covers |
|---|---|
| Custom Attributes | Read and set custom user attributes |
| Custom Events | Send custom events that trigger journeys |
| eCommerce | Record add-to-cart, product view, and purchase events |
| Privacy Request | Submit GDPR/deletion requests |
| Product Catalog | Read product catalog data |
| Subscribers | Subscribe and unsubscribe users; read subscription status |
Troubleshooting
A request failed for one API
A request failed for one API
Each API defaults to No Access. Make sure you set every API the agent needs to Write when creating the app, then reconnect.
I lost the API key
I lost the API key
The key is shown only once. Regenerate it on the Built by you tab in Attentive, then reconnect in Dema with the new key.
I cannot reach the custom-app page
I cannot reach the custom-app page
Email api-tokens@attentivemobile.com to request access to the custom-app management page.

