Before you start
Switch the Aide AI Agent on for website chat (AI Agent > Per channel). The install instructions appear in Aide Chat > Installation once the agent is on website chat; until then the tab says “Nothing to install yet”.On Shopify
With your Shopify store connected, Aide Chat is a Shopify theme app embed:- Open Aide Chat > Installation and click Open theme editor.
- Under App embeds, switch on Aide chat.
- Save the theme.
Show the chat only in some countries
A store that sells in several markets can show the chat in some of them only. In the theme editor, under App embeds, open the Aide chat embed’s settings and fill in Countries with two-letter country codes separated by commas, for exampleUS, CA. Save the theme.
The chat then appears only when the country your storefront is showing the shopper is in the list: the one in your store’s country selector, or the one a market’s address such as /en-gb belongs to. Everywhere else the chat doesn’t load at all. A market that covers several countries needs each of them listed. Leave Countries empty to show the chat in every country.
Use the codes, not the names: US works, “United States” doesn’t. The list is saved with the theme, so set it again when you switch themes. It applies to your storefront only, not to chat in checkout or in customer accounts.
On any other website
Copy the embed snippet from Aide Chat > Installation and paste it just before</body> on every page where the chat should appear. It looks like this, with your own widget key, which starts with wk_:
Check that it works
The Installation tab shows Live with the number of conversations in the last 30 days once real visitors have chatted. Preview conversations from the dashboard don’t count. Until then it shows No visitors yet.Open the chat from your own button
Any element with thedata-aide-open attribute opens Aide Chat when clicked, with no script of your own:
Aide('config', { hideLauncher: true }).
Restrict which sites can load it
By default the widget loads on any site that has your snippet. Developers can restrict it to a list of allowed origins (for examplehttps://shop.example.com, up to 50) with Aide’s API, by updating the widget’s allowedOrigins. Requests from other origins are refused.