Chat Setup
How to setup Pylon's in-app chat
Installation
Installing In-App Chat will involve adding code to your Frontend. It may be necessary to involve an engineer to get this installed if you don’t have access to the codebase.
Getting Started
Grab your
APP_ID
here.
Add Script to Body Add the following
<script>
to right before the</body>
tag in yourindex.html
. Make sure to replace theAPP_ID
with theAPP_ID
you grabbed from Step 1.
Content Security Policy
If you have a CSP, you will need to allowlist
*.usepylon.com
,*.posthog.com
,d3vl36l12sfx26.cloudfront.net
and*.pusher.com
under theconnect-src
,script-src
,font-src
,style-src
directives. For context, we use PostHog for product metrics and Pusher for sending chat messages in realtime.
Enable the Chat Widget
Anywhere in your React code you can access the
window
object and set thepylon
config.You should add this code wherever the user has already logged in and details like the User’s email, name, etc. become available.
Example usage in a React component:
Setup Chat Support Channel Create a Slack channel in your workspace where you can respond to chats, like
#chat-support
.Note: If you make this channel private, add the Pylon bot to the channel.
Set
#chat-support
as your Chat Support Channel here.
Chat Widget Color
Set the color of your chat widget here.
Turn it On
At the top of the In-App Chat Settings page on the Config tab, toggle the In-App Chat on.
All Done!
Last updated