Overview
Once Centra is connected, the Dema Agent can pull live data from your store — products, variants, orders, customers, inventory, markets, pricelists, categories, and discounts — directly inside a conversation. With write permissions, it can also take action for you: correct stock, confirm or cancel orders, create shipments, update products and customers, and turn discounts on or off. The agent only acts when you ask it to, and Dema asks you to confirm sensitive changes before they are applied. You stay in control of both what the agent can see and what it can do.Use a dedicated token for the agent
Create a new Integration API token just for the agent, separate from the one your data sync uses. The agent can act on your store, not just read it, so its own token keeps access independently scoped, auditable, and revocable — cutting the agent off or rotating its token never touches your analytics sync. Name it something obvious likeDema Agent.
Prerequisites
- A Centra account with permission to create Integration API tokens (System → API Tokens).
- Your store URL, in the form
https://your-store.centra.com.
Connect Centra
Create a dedicated API token in Centra
- In Centra, go to System → API Tokens.
- Click Create integration API token in the top right.
- Give it a description and set Integration name to
Dema Agent(create it if it does not exist). - Set an expiry date. Centra tokens are time-limited (30 days by default); pick a window that fits your rotation policy.
- Leave Restrictions unchecked, or scope them if your security team requires it.
- Under Permissions, select the permissions listed in Permissions to grant below. Grant the read set for analysis; add write permissions only if you want the agent to make changes.
- Click Save and copy the generated token.
Connect in Dema
- API token — the token you just created.
- Account URL — your store URL, for example
https://your-store.centra.com.
Permissions to grant
Centra permissions are granular and chosen when you create the token. We recommend the principle of least privilege: grant the read set so the agent can analyze your store, and add write permissions only for the actions you actually want it to perform.Read access (recommended baseline)
Grant these so the agent can answer questions across your catalogue, orders, customers, inventory, and pricing.Products & catalogue
Products & catalogue
Inventory
Inventory
Orders & returns
Orders & returns
Customers
Customers
Markets, pricing & merchandising
Markets, pricing & merchandising
Reference data
Reference data
Write access (optional)
Add these only if you want the agent to make changes in Centra. Write tools run only when you ask, and Dema prompts you to approve sensitive changes before they are applied.Inventory
Inventory
Order operations
Order operations
Catalogue & customers
Catalogue & customers
Merchandising
Merchandising
Pricing & promotions
Pricing & promotions
AdminUser:read and StorePlugin:read on the token — Centra needs them to resolve the shipping configuration even though the agent never reads that data directly.When your token expires
Centra Integration API tokens are static and expire on the date you set (30 days by default). When a token expires, the integration shows as expired in Dema and the agent stops using it. To restore access, create a fresh token in Centra and paste it in via Reconnect on the integration card.Troubleshooting
The agent says it is missing a permission
The agent says it is missing a permission
permissionsUsed on every request). Open the token in System → API Tokens, add the named permission, save, and click Reconnect in Dema. If the token cannot be edited, create a new one with the added permission and reconnect.Dema says the Account URL is invalid
Dema says the Account URL is invalid
https://your-store.centra.com. Use your real store hostname, not a hand-written value.Dema says my connection has expired
Dema says my connection has expired
The agent cannot see a write action working
The agent cannot see a write action working
Additional resources
- Centra Integration API documentation
- Centra data integration (analytics sync) — the separate read-only connection that feeds Dema’s reporting

