Create a widget agent
- Open the Agents tab and click Create an agent.
- Choose Widget as the channel.
- Give it instructions and tools like any other agent — product lookup, order status, and your automations.
Embed it on your website
The agent editor’s Embed section generates a copy-paste snippet for your agent: an iframe pointing at your agent’s widget URL, plus a small script that resizes the frame when the chat opens and closes.</body> tag of your site.
Open the chat from your page
The widget frame accepts two messages from the page that embeds it. Post them once the frame has sent itscolossal:widget-ready message.
{ type: "colossal:open" }— opens the chat panel.{ type: "colossal:send-message", text: "..." }— opens the panel and sendstextas the visitor’s message. A message with no text is ignored.
Shopify
In the Embed section, switch the target to Shopify before copying. Then in Shopify admin, go to Online Store → Themes → Edit code and paste the snippet before</body> in theme.liquid.
The Shopify variant adds two bridges on top of the base snippet:
- Sign-in bridge — signs the customer in to the chat using their Shopify login (via the Colossal app proxy), and signs them out when they log out of the store. This requires the Colossal app to be connected to the store; without it, the chat simply stays anonymous and everything else keeps working.
- Cart bridge — keeps the storefront cart in sync, so when the agent adds or removes items, the customer’s real Shopify cart updates.