Website widget

Install the Fetchply chat widget on your website with one line of code, a plugin, or your site builder, and check that it is live.

The website widget puts your agent on your site as a chat launcher. Open Channels → Widget customizer → Install and choose how your site is built.

Install

Select Install manually with code and copy your install code. Paste it once on every page, just before </body>:

<script src="https://fetchply.com/widget.js?v=0.1.0" data-chatbot-id="YOUR_AGENT_ID" defer></script>

Always copy the code from your dashboard: it already holds your agent ID.

Install the Fetchply plugin. See WordPress.

Install the Fetchply app from the Shopify App Store, then turn on Fetchply Chat under App embeds in your theme editor and save. See Shopify.

Pick your website builder to see its steps next to your install code. Most builders have a "custom code" or "footer code" setting where the code goes.

Then open your site in a private window and send a message. It appears in your Inbox.

Options in the install code

Install manually with code has switches that add these to the code:

AttributeValuesDefault
data-positionbottom-left, bottom-middleBottom right
data-display-modechatbot (Bubble), agent_search (Input bar), classic (Classic)Your saved style
data-active-screensplash (Welcome screen), chat (straight to chat)Your saved Opening screen

An attribute in the code always wins over the matching setting in Appearance. Pick Saved setting in Launcher style or Opening screen to leave it out, so changes you make in Appearance apply to your site.

Show the chat inside a page

The same panel has an inline embed that shows the chat inside a section of a page instead of as a bubble:

<iframe src="https://fetchply.com/widget?chatbotId=YOUR_AGENT_ID" width="500" height="800" title="Chat Widget" allow="clipboard-write"></iframe>

Open the chat from your own button

After the widget loads, add data-fetchply-open to any button to open the chat. Add data-fetchply-message="Your question" to open it and send that message.

Is it live?

Is it live? at the bottom of the Install tab shows Live when the widget opened on one of your pages in the last 7 days, Not seen recently when it hasn't, and Not detected yet before the first visit. Each website the widget runs on is listed with its pages.

Previews in the dashboard, localhost, test addresses, and the inline embed are not counted.

What the agent knows about the page

The agent is told the address and title of the page the visitor is chatting from, so "is this in stock?" gets a grounded answer. Anything after ? or # in the address is removed, and nothing the visitor types on your page is read.

Troubleshooting

The chat launcher doesn't appear. Check the code is on the page, once, and belongs to this agent. Check your display rules allow the page and device, and that the agent is turned on in Settings → Agent.

Is it live? says Not detected yet. Open your live site (not localhost), wait a minute, and select Refresh.

It says Not seen recently. Nobody opened a page with the widget for 7 days, or a theme change removed the code. Open your site to check, and add the code again if needed.

The widget covers a button on my site. Change Widget position, or hide the widget on that page with a display rule.