If you’re looking for information on how to embed your Chatwith Agent in your Magento website, you’re in the right place! Here’s How to add Chatwith to a Magento website with Chatwith.
The guide below refers to Magento 2.
Add your agent to your Magento website
Adding your agent to your website can be done in two steps that take just a minute!
In the Chatwith dashboard
Select your agent from the dropdown menu at the top, click on the Install agent section in the sidebar, then click on the Copy code button to copy your code snippet.

In Magento
To add custom code to the HTML
<head> in Magento:- Choose the store view you want the head tag to be changed on or select Global to change it on every store view.
- Find the HTML Head section and add your code in the Scripts and Style Sheets field.

- Press Save and optionally flush Magento cache to see the changes faster.
What is Magento?
Magento is a robust, open-source eCommerce platform designed to provide merchants with the tools needed to create customizable, scalable online stores. It offers a flexible architecture, a vast extension marketplace, and a feature-rich experience, making it ideal for businesses of all sizes. Magento 2 supports a wide range of functionalities, including advanced product management, inventory control, and seamless integrations with third-party services.
Why add Chatwith to Magento?
Adding a custom GPT to your Magento store can elevate the customer shopping experience. It can handle customer inquiries in real-time, provide personalized product recommendations, and assist with navigating the store, all of which improve engagement and satisfaction. By automating common customer service tasks, a custom GPT can also reduce operational costs and free up your team to focus on more strategic areas of the business.