Add the chat widget to your website
Create a chat bubble for your website, style it, collect the visitor's name and phone before chatting, and paste one line of code to install it.
A widget is the chat bubble on your website. Visitors type in it, and their messages land in your FOXAF Inbox, where your team or an AI agent answers.
The Web chat widgets page with a widget card showing its status, chats and the Copy snippet button
Before you begin
- You can edit your website's HTML, or add code to its footer. On WordPress, a header-and-footer code plugin or your theme's footer settings work.
- To let an AI agent answer, create the agent first under AI Agents.
- Your plan sets how many widgets you can create.
Where to find it
In the sidebar, under Grow, click Website Chat, then the Widgets tab.
Create a widget
- Click New widget.
- Under Basics, type a Widget name, for example Main website chat.
- Keep Status on Enabled.
- Optional: turn on Session Replay to record visits you can play back in Website Chat.
- Under AI auto-reply agent, pick an agent, or keep No AI — humans only.
- Leave Connect to channel on Inbox-only (no channel reply path) unless you have a reason to link a channel. Web chats arrive in the Inbox either way.
- Click Create widget at the top right.
The builder reopens with your Embed snippet at the top.
Style the widget
Watch the Preview on the right as you change these:
- Appearance: Position (right or left), Bubble color, Primary accent (chat header) and Bubble icon (Speech bubble, WhatsApp or Support).
- Messaging: the Greeting, Input placeholder, Online status text and Offline message.
- Pre-chat lead capture: turn on Require name, Require email or Require phone (WhatsApp-friendly). Visitors fill these in before chatting, and they are saved to your contacts.
- WhatsApp button: turn on Enable WhatsApp button, type your WhatsApp number (with country code) and Button text, and choose the Placement on the page. It opens a WhatsApp chat with your number.
Click Save changes when you're done.
Install it on your website
- In the builder, under Embed snippet, click Copy. You can also click Copy snippet on the widget's card in the list.
- Open your website's HTML or footer code settings.
- Paste the snippet just before the closing
</body>tag, on every page where the bubble should show. - Save and publish your website.
- Open your website in a new browser window. The bubble appears in the corner you chose.
What happens next
- Each chat appears in your Inbox and in Website Chat → Console, linked to the visitor's contact.
- If you picked an AI agent, it answers first. Your team can pause it and take over.
- Visitors on pages with the widget show up live in Website Chat. See Website Chat: see visitors and chat live.
- The widget card counts chats and messages, and shows when it was last used.
Common questions
I pasted the snippet but no bubble shows. Why?
Check the widget's Status is Enabled, the snippet is before </body>, and your site's cache is cleared. If you set Allowed origins, your site's address must be in the list exactly.
Can I have different widgets for different websites? Yes. Create one widget per website, each with its own snippet, style and AI agent.
How do I hide the widget for a while? Edit it, switch Status to Disabled, and click Save changes. The snippet can stay on your site.
What happens if I delete a widget? It stops showing on your website immediately. Past chats stay in the Inbox.
Thank you. If you still need help, write to support@foxaf.com.