All Articles
Guides

How to set up a chat widget that gives B2B customers in-app support

Learn how to set up a chat widget in your product and give customers real-time support without leaving your app.

Dan Guo
June 30, 2026
Built for Modern B2B Support

Resolve issues faster, strengthen relationships, and uncover opportunities across every customer interaction.

Most B2B support happens outside the product. When a user runs into a wall, they have to stop what they’re doing, open a new tab, and dig through a help center or send an email. By the time they get a response, they’ve either figured it out themselves or given up entirely. 

You can close this gap by bringing support directly into your product. When you set up a chat widget, you give your users a direct line to your team at the exact moment they need it. This turns a frustrating roadblock into a seamless resolution.

In this guide, we’ll cover how to install and configure Pylon’s Chat Widget, plus what chat widgets are and why B2B teams need one embedded in their product.

How to set up a chat widget in Pylon: 10 steps

Issue view from Pylon

You don’t need to build a custom chat widget for your website from scratch. Pylon gives you a ready-to-use widget that drops right into your frontend. Here’s how to install and configure it.

1. Get your App ID

First, you need to grab your unique identifier. Log into your Pylon workspace, navigate to the Settings tab, and grab your APP_ID. You’ll need this for the installation script. This ID is what connects the frontend widget on your application to your specific backend workspace in Pylon. When a user types a message, this ID is what routes it correctly to your team’s queue.

2. Add the embed script to your frontend

You’ll need to add a small snippet of code to your application. Add the provided <script> tag right before the </body> tag in your index.html file. Make sure to replace the placeholder text with the APP_ID you grabbed in the first step. This script is lightweight and loads asynchronously, so it won’t slow down your application’s performance or block other critical resources from loading. It simply tells the browser to fetch the widget interface when the page renders.

3. Configure user identity in your app

You want the widget to know who’s talking. Anywhere in your React code, you can access the window object and set the Pylon config. Add this code wherever the user has already logged in, and details like their email and name become available. This setup means your team won’t have to ask for those details again. You can pass through specific attributes like their full name, avatar URL, and unique account ID. When this data flows into Pylon, your support team gets an immediate, complete picture of the person they’re helping. 

4. Update your Content Security Policy (if applicable)

If your application uses a Content Security Policy (CSP), you’ll need to update it to allow the widget to load. Add the necessary connect-src, script-src, font-src, style-src, and img-src directives to your policy so the widget can communicate with Pylon’s servers.

5. Set up your Chat Support Channel in Slack

Create a dedicated Slack channel in your workspace where your team can respond to incoming chats, like #chat-support. If you make this channel private, give the Pylon bot access. Then, set this as your official Chat Support Channel in your Pylon settings. By routing everything into Slack, your support agents don’t have to monitor a separate browser tab. They get a notification in Slack, they click reply, and the message instantly appears in the user’s chat widget.

6. Customize your widget's appearance

Make the widget feel native to your application; you can customize the colors, branding, and welcome message. If you manage multiple products, you can even set up multiple separate chat widgets with different branding for each. A custom widget builds trust because it looks like a deliberate part of your software interface. 

7. Configure functionality

Decide what you want the widget to do. You can enable live chat, embed your knowledge base search, add custom forms for bug reports, and include quick links to important resources. You can also use the JavaScript API to build custom workflows and control the widget’s behavior programmatically. For example, you can use the API to automatically open the widget when a user clicks a specific “Help” button in your navigation bar, or you can trigger a proactive message when they visit a complex pricing page.

8. Enable identity verification (strongly recommended)

Before you go live, you should set up identity verification. This prevents bad actors from spoofing user identities and guarantees that the person chatting is actually the authenticated user they claim to be. You do this by generating an HMAC hash of the user’s email address on your backend server using your Pylon secret key, and passing that hash to the frontend configuration, near-guaranteeing that the data is secure.

9. Enable AI support (optional)

If you want to offer 24/7 support, you can connect an AI agent to the widget. The agent will read your documentation and automatically answer common questions before they ever reach your team. This is how modern B2B teams scale their operations without tripling their headcount. The AI handles the repetitive password resets and basic configuration questions, freeing up your people to handle the complex technical escalations that require expertise.

If you want to understand the difference between rule-based chatbots and this kind of intelligent automation, our breakdown of chatbots versus conversational AI covers it in detail.

10. Enable the widget

Once everything is configured and tested, go to the top of the Chat Widget Settings page and toggle Enable Chat Widget to switch it on. The chat bubble will immediately appear in your product, ready for your customers to use. From here, you can monitor incoming conversations and iterate on your configuration as you learn what your users need. 

Schedule your personalized walkthrough

What’s a chat widget?

A chat widget is a UI component embedded into a website or application that enables real-time messaging between a user and a company. It usually appears as a chat bubble in the bottom corner of the screen. When a user clicks it, it opens a messaging interface where they can talk to support, search documentation, or submit a ticket. 

Not all chat widgets serve the same purpose; the context changes everything. Most chat widget content focuses on the consumer and marketing-site use case: the popup that greets you on an e-commerce homepage or landing page, designed to capture leads or nudge a sale. In a B2C setting, these widgets often create friction instead of removing it. They interrupt browsing, push messages no one asked for, and frequently route shoppers into clunky chatbot flows that feel like an obstacle between them and a human. For a one-time visitor with a quick question, that experience can do more harm than good. 

In B2B SaaS, the use case is completely different. The widget lives inside the authenticated product dashboard, alongside the workflows your customers depend on daily. Here it isn’t a marketing interruption, it’s an infrastructure: a reliable, always-available channel support teams can build their entire support operation around. When a customer hits a blocker mid-task, they don’t have to leave the product to dig through a help center or send an email. The widget meets them where the work happens. 

Executed well, B2B live chat improves user trust, because they don’t have to navigate a frustrating, complex process just to get help. That distinction — support tooling embedded in the product versus a popup chasing conversions — is what separates a real customer support chat platform from a marketing popup.

What makes a great B2B chat widget?

Chat integrations view from Pylon

When you’re supporting complex software, a simple text box isn’t enough. You need a full chat support system built for authenticated users. If you’re looking for the best live chat for website support, you have to prioritize deep integrations and ticketing over basic conversational marketing. 

A great B2B chat widget needs:

  • Real-time conversation and ticket tracking. Every chat needs to become a trackable issue with a clear owner, status, and SLA. If a user starts a chat on Monday and comes back on Thursday, the context should persist. You can’t treat B2B support like disposable sessions. History must be logged and accessible to your entire support team.
  • Slack sync and team collaboration. Your team should be able to reply to chats directly from Slack, where they’re already working, instead of shifting to a different inbox. When an engineer needs to weigh in on a complex technical issue, they can drop a comment in the internal Slack thread without ever logging into a separate help desk tool
  • In-widget self-service. The widget should let users search your knowledge base and find answers without ever starting a chat. Deflection is critical for scaling teams. When you embed your documentation directly into the chat interface, users can self-serve before they use up your team’s bandwidth. 
  • Identity and security. The widget needs to know exactly who the user is, what account they belong to, and what plan they’re on, so your team has full context before they reply. That identifying information should be cryptographically verified, not self-reported, so one customer can’t impersonate another or view a conversation that isn’t theirs. You can’t ask a high-tier enterprise customer for their email address every time they open the widget; the system must recognize them instantly and securely, then route their query to the correct account owner if necessary.

Turn your chat widget into a full support channel with Pylon

A chat widget is one layer of a broader omnichannel support strategy. When you connect in-app chat to the rest of your tools and layer in conversational automation, it becomes a channel that makes your whole support operation more effective.

Pylon is the modern B2B support platform that offers true omnichannel support across Slack, Teams, email, chat, ticket forms, and more. Our AI Agents and Assistants automate busywork and reduce response times. Plus, with Account Intelligence that unifies scattered customer signals to calculate health scores and identify churn risk, we’re built for customer success at scale.

Book a demo

FAQ

How is a chat widget different from a Slack Connect channel?

A chat widget lives inside your product — customers reach it while actively using your app. Slack Connect channels are shared workspaces your customers already live in. Both create trackable issues in Pylon, but the right channel depends on where your customer prefers to communicate. Many B2B teams run both simultaneously.

Can I show the chat widget to some users but not others?

Yes. Pylon lets you control widget visibility using user and account properties. You can hide it from free-tier users, show it only to accounts above a certain spend threshold, or surface different quick links depending on the customer's plan level.

Will chat conversations create tickets automatically?

Every chat conversation in Pylon becomes a trackable issue. You get full conversation history, assignee, status, and SLA tracking — the same as any ticket that comes in through Slack, email, or a ticket form.

What happens to chats that come in outside business hours?

You can configure custom support hours specifically for the chat widget, separate from your global Pylon support hours. Outside those hours, you can pair the widget with an AI agent to handle incoming questions automatically, so customers still get a response even when your team is offline.

Does the chat widget work on mobile?

Yes. Pylon offers mobile SDKs for embedding the chat widget directly inside your iOS or Android app, so customers get the same in-app support experience on mobile as on desktop.

Can multiple AI agents work within the chat widget?

Yes. Pylon supports deploying multiple AI agents — for example, one focused on billing questions and another on technical troubleshooting. Each agent draws on your knowledge base and training data to resolve issues before escalating to a human.

Explore more

No items found.

Explore more

Industry

Slack & Microsoft Teams Integration: A Breakdown of Options

Dan Guo
May 8, 2025
Blog post
Industry

What is conversational AI for customer support? Everything you need to know

Pylon Team
December 18, 2025
Blog post
Spotlights

Spotlight: Joseph Sterner @ Close

Marty Kausas
November 1, 2024
Blog post
Releases

Product Launch: Macros

Advith Chelikani
March 25, 2024
Blog post
Guides

Net promoter score (NPS): Why it matters, and how to improve it

Dan Guo
February 2, 2026
Blog post
Industry

Scaling your B2B customer acquisition process with AI

Dan Guo
May 5, 2026
Blog post
Guides

Tips for Building Scalable Support Models That Boost Retention

Advith Chelikani
October 14, 2025
Blog post
Industry

Customer enablement: Benefits, best practices, and examples

Dan Guo
January 29, 2026
Blog post
Industry

Best Customer Success Tools to Proactively Manage B2B Accounts in 2025

Pylon Team
November 19, 2025
Blog post