Salla Integration: AI WhatsApp Agent for Your Salla Store
Install ChatMaxima from the Salla App Store, link it with a one-time code and let an AI agent answer order, tracking and product questions on WhatsApp.
Overview
The ChatMaxima Salla integration connects your Salla store to WhatsApp, Instagram and your website chat. Customers ask where their order is, whether a product is in stock, or how much it costs, and an AI agent answers from your live store data in Arabic or English.
Once your store is connected you can:
- Answer order questions with the status, total, payment method and shipment tracking link, by order number or by the customer's phone number
- Search your catalog and reply with product names, prices and stock
- Confirm cash on delivery orders on WhatsApp and update the order status in Salla
- Start flows from store events such as a new order, a status change, a shipment, a cancellation or an abandoned cart
- Hand the chat to your team in the shared inbox when a question needs a person
Note: The AI agent and the Salla block answer on every channel connected to your bot. Messages that ChatMaxima sends first, such as order updates and abandoned cart reminders, go out on WhatsApp and use WhatsApp templates approved by Meta.
Prerequisites
Before you begin, make sure you have:
- A Salla store where you are an admin, so you can install apps and change app settings
- A ChatMaxima account on any active plan
- A WhatsApp number connected to ChatMaxima if you want to message customers on WhatsApp. See Channels.
Step 1: Install ChatMaxima from the Salla App Store
- Sign in to your Salla store dashboard.
- Open the Salla App Store, search for ChatMaxima and click Install.
- Review the permissions and approve them.
ChatMaxima asks for read access to your store settings, customers, carts, products and shipping, read and write access to orders (to update the status of cash on delivery orders) and read and write access to webhooks (to start flows from store events). It never changes products, prices or customers.
Step 2: Link your store to your ChatMaxima workspace
Salla does not tell ChatMaxima which workspace you use, so you link the two with a one-time code.
Get a link code in ChatMaxima
- In ChatMaxima, open Integrations in the sidebar and click Add Integrations.
- Enter a name for the integration, for example
My Salla Store, and choose Salla as the platform. - Click Connect store. ChatMaxima shows Connect your Salla store in two steps with a code such as
CM-AB12-CD34. - Click Copy.
Paste the code in Salla
- In your Salla dashboard, open Installed Apps, then ChatMaxima, then Settings.
- Paste the code into the ChatMaxima link code field.
- Click Save.
The ChatMaxima page updates by itself and shows Your Salla store is connected. You do not need to refresh it.
| Detail | What to know |
|---|---|
| Code format | CM- followed by two groups of four letters or numbers |
| Validity | Works once and expires after 24 hours |
| Several workspaces | Each workspace generates its own code; the store can be linked to more than one workspace |
| Reconnecting | Open the integration and click Reconnect store to get a new code |
Note: If Salla brings you back to ChatMaxima right after the install, the store connects on its own and you can skip pasting the code. If the code does not complete the link, click Did not work? Connect with Salla sign-in instead and approve access in the window that opens.
Step 3: Use the Salla block in a bot
The Salla block reads your store during a conversation and saves the result in a variable for the rest of the flow.
- Open Studio and edit your bot.
- Drag the Salla block onto the canvas, or right-click a block and choose Add block after.
- Choose your Salla integration, then choose an action under Select Type.
- Fill in the fields for that action and name the response variable.
| Action | What it does | Main field |
|---|---|---|
| Get Order Details | Status, total, payment method, items and tracking link of one order | Order number |
| Get Customer Orders | The latest orders of a customer | Customer phone or email |
| Find Customer | The customer's profile | Customer phone or email |
| Get All Orders | The latest orders in the store | Limit |
| Get Product Details | One product with price and stock | Product ID |
| Search Products | Products that match a search, with prices | Search text |
| Get All Products | The latest products in the store | Limit |
| Update Order Status | Moves an order to a new status and saves an optional note | Order number, New order status |
Use {sys_account_contact_mobile} in Customer phone or email to match the customer who is chatting with the bot.
The block has two outputs. The second output, no match or error, runs when the order or customer is not found or the store cannot be reached, so you can reply with a helpful message instead of an empty answer.
Let the AI agent use your store
Connect Salla blocks to an AI Assistant block as tools. The agent then decides by itself when to look up an order or search products, based on what the customer asks. Use {user_response} as the order number or search text so the agent can fill it in.
Confirm cash on delivery orders
Use Update Order Status after the customer confirms on WhatsApp, for example with buttons "Confirm" and "Cancel":
- Confirm moves the order to Confirmed (in progress)
- Cancel moves the order to Cancelled
The optional Note is saved on the order in Salla, for example "Confirmed by the customer on WhatsApp".
Note: The block's Playground tab does not change orders. Test Update Order Status in a test conversation instead.
Step 4: Start flows from Salla events
- In Studio, add a Webhook block as the start of a flow and open Trigger source.
- Under App, choose Salla, then choose your integration under Integration.
- Under Events, tick the events that should start the flow.
- Click Register events, then save the flow.
| Event | When it fires |
|---|---|
| Order created | A customer places an order |
| Order status updated | The order status changes in Salla |
| Shipment created | A shipment is created for an order |
| Order cancelled | An order is cancelled |
| Abandoned cart | Sent after the store's abandoned cart delay |
| Customer created | A new customer registers |
Each event gives the flow a store object you can map to variables, including store.customer_name, store.customer_mobile (ready for WhatsApp), store.order_number, store.order_status, store.order_total, store.payment_method, store.is_cod, store.tracking_url and, for abandoned carts, store.cart_url and store.cart_total.
Best Practices
- Ask for the order number first, and fall back to the customer's phone with Get Customer Orders when they do not have it
- Always wire the second output so a wrong order number gets a clear reply
- Use approved WhatsApp templates for order updates and abandoned cart messages, since they are sent outside the 24-hour reply window
- Keep one integration per store per workspace; several workspaces can share the same store
Troubleshooting
The link code does not connect the store
- Check that you pasted the whole code, including
CM-, and clicked Save in the Salla app settings. - Check that the code is less than 24 hours old and has not been used. Click Connect store again for a new one.
- Only one code is kept in the store's app settings at a time. If someone else saved another code afterwards, paste yours again and save.
Store events do not start the flow
- Open the Webhook block and check that the events are listed under Registered events.
- If you reinstalled the app, click Register events again and save the flow.
A customer's orders are not found by phone
Ask the customer for the phone number used at checkout, with the country code. The block also matches local numbers that start with 0.