Native AI actions are still under development for Shopify, please use our Custom AI actions API to enable Molin to execute tasks in the meantime.
Add to cart
When Molin recommends products in the chat, product cards on a Shopify store show an add-to-cart button. Clicking it instantly adds 1 unit of the recommended product variant to the visitor’s cart, without leaving the conversation. This is enabled automatically on all Shopify stores connected through our Shopify plugin, no configuration needed.- The button shows a spinner while adding, then a checkmark on success or an error indicator if the item cannot be added (e.g. sold out).
- Each add to cart is tracked in your Molin analytics and pushed to Google Analytics as a standard GA4
add_to_cartecommerce event. - If your theme has a cart drawer or cart count badge, you can refresh it by listening to the
molin:add-to-cartJavaScript event.
Do you have issues adding the Molin AI script to your Shopify store?
No problem, in this old tutorial we will show you how you can add the script manually into your store.- Navigate to the publish page by following this link: https://molin.ai/app/publish
- Copy your script from the publish page
- In your Shopify Dashboard, click on Online Store —> Themes —> Customize
- Click on the
...in the top left corner —> Edit code —>theme.liquid - In the
theme.liquidfile, paste your Molin script inside the<head></head>tag.
If you need any help with our Shopify integration, then please contact us .