This repository demonstrates how to integrate Inkeep's AI Documentation Chat widget within your existing Intercom messenger. This is ideal if you don't want to stop using Intercom and you don't want two different messenger widgets on your web page.
Try a live demo using Inkeep's Intercom and Inkeep's docs here
High level:
- 1-click deploy an app to Vercel. This app has the logic needed for the Intercom widget to talk to the Inkeep app. Let us know if you use a different cloud provider
- Configure the Inkeep app in the Intercom dashboard to be used by the widget
-
Click "Deploy to Vercel":
-
Get variables:
NEXT_PUBLIC_INTERCOM_APP_ID
is the Intercom workspace ID. Learn how to find your App ID here.INKEEP_API_KEY
,INKEEP_INTEGRATION_ID
,INKEEP_ORGANIZATION_ID
are the API keys for the Inkeep API. Learn how to get your API keys here.INKEEP_ORGANIZATION_DISPLAY_NAME
is the name of your organization as it should appear in the chat interface (e.g., "Acme Corp").INKEEP_PRIMARY_BRAND_COLOR
is the hex color code for your brand's primary color (e.g., "#26D6FF").
-
Complete the vercel deployment. Get the deployment domain, e.g.
myinkeepintercomapp.vercel.com
)
-
Create and configure a new Intercom App:
-
Configure the new app: https://developers.intercom.com/docs/build-an-integration/getting-started/build-an-app-for-your-messenger/#add-the-webhooks
- Initialize flow Webhook url:
{ Vercel Deployment Domain}/api/initialize
- Submit flow Webhook url:
{ Vercel Deployment Domain}/api/submit
- Initialize flow Webhook url:
-
-
Configure the messenger to display the app.
- Follow this guide to add your new app to the messenger: Customize your messenger home with apps
-
Test it.
- Go to a page where your intercom messenger is shown or open your vercel deployment homepage to give it a test drive.
Optional
- Customize the Inkeep-Intercom app using elements from the Intercom Canvas Kit and redefining the canvas object within the initlialize endpoint.
- Conditionally show/hide the Inkeep Intercom app based on various user and visitor properties.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.