Skip to content

Template repository for Inkeep's AI documentation within Intercom messenger.

Notifications You must be signed in to change notification settings

inkeep/inkeep-within-intercom

Repository files navigation

Inkeep Intercom Application Template

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.

Live Demo:

Try a live demo using Inkeep's Intercom and Inkeep's docs here

Example Inkeep Intercom Messenger App Presentation Entry Point

Example Messenger Input interaction

Example Messenger Output interaction

Set up instructions

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

Deploy to Vercel

Deploy with Vercel

  1. Click "Deploy to Vercel":

    • Deploy with Vercel
  2. 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").
  3. Complete the vercel deployment. Get the deployment domain, e.g. myinkeepintercomapp.vercel.com)

Configure in Intercom

  1. Create and configure a new Intercom App:

  2. Configure the messenger to display the app.

  3. 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.

Local Development

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.