TechBuzzPro

How to Integrate Intercom with OpenAI

· 5 min read · AI Tools

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Integrating Intercom with OpenAI lets you add AI-powered chat responses, automated support, and smart replies to your Intercom conversations. You can connect them using Intercom's built-in OpenAI integration (available on certain plans) or through the Intercom API and a custom webhook. This guide covers the official integration method and a no-code approach using Zapier. You'll need an Intercom workspace with admin access, an OpenAI API key, and (for the API route) basic familiarity with webhooks or a tool like Zapier.

What You'll Need

  • An Intercom workspace with admin or owner permissions.
  • An OpenAI account with an API key (from platform.openai.com).
  • If using the built-in integration: Intercom plan that supports apps (Pro or higher, or a trial).
  • If using Zapier: a Zapier account (free tier works for testing).

Step-by-Step

Option 1: Use Intercom's Native OpenAI Integration (Recommended)

  1. Log in to your Intercom workspace as an admin.
  2. Go to Settings > Apps (or click the “Apps” icon in the left sidebar).
  3. Search for “OpenAI” in the app marketplace and click the official OpenAI app.
  4. Click Install and follow the prompts to authorize the app.
  5. Open the OpenAI app settings from your Installed Apps list.
  6. Enter your OpenAI API key. If you don't have one, go to platform.openai.com, create an account, and generate a key under API Keys.
  7. Choose a model (e.g., gpt-4o-mini or gpt-3.5-turbo) and set a temperature (0.2 for more focused responses).
  8. Define a system prompt that tells the AI how to respond (e.g., “You are a helpful support agent for our company”).
  9. Save the settings. The integration is now active.
  10. Test it by sending a test message to your Intercom inbox or using the “Try it” button in the app settings.

Option 2: Use Zapier to Connect Intercom and OpenAI

  1. Create a Zapier account at zapier.com and click Create Zap.
  2. Choose Intercom as the trigger app and select a trigger event like “New Conversation” or “New Message.”
  3. Connect your Intercom account and select the workspace you want to use.
  4. Set up the trigger by choosing the conversation type (e.g., “Inbox” or “Support”).
  5. Add a new step and choose OpenAI as the action app.
  6. Select the action event “Send Prompt” (or “Create Completion” depending on your OpenAI plan).
  7. Connect your OpenAI account by pasting your API key.
  8. In the prompt field, map the incoming Intercom conversation content. Use the “Insert Data” dropdown to select fields like Conversation Content or Last Message.
  9. Optionally, add a system message and set parameters like model and temperature.
  10. Add another step to send the AI response back to Intercom. Choose Intercom as the action app and select “Send Message” or “Reply to Conversation.”
  11. Map the response from the OpenAI step to the message body field.
  12. Turn on the Zap and test it with a real conversation.

Option 3: Custom Webhook (For Developers)

  1. Create a webhook endpoint on your server that receives Intercom events (e.g., via Intercom's webhook system).
  2. In Intercom, go to Settings > Developer > Webhooks.
  3. Add a new webhook and subscribe to events like conversation.user.created or conversation.admin.replied.
  4. Set the URL to your endpoint and save.
  5. In your server code, parse the incoming payload to extract the conversation ID and the user's message.
  6. Call the OpenAI API (using the official SDK or a simple HTTP request) to get a response.
  7. Use Intercom's API (POST /conversations/{id}/reply) to send the AI response back to the conversation.
  8. Test by sending a message to your Intercom inbox and checking your server logs.

Common Mistakes

  • Using the wrong API key – Make sure you copy the full key from OpenAI and that it's active (not revoked).
  • Not setting a system prompt – Without it, the AI may give generic or off-topic answers.
  • Mapping the wrong fields in Zapier – If you map the entire conversation object instead of just the message text, the AI may receive too much data.
  • Forgetting to enable the webhook – In Intercom, webhooks are disabled by default; you must turn them on.
  • Ignoring rate limits – OpenAI has rate limits; if you send many conversations at once, you may hit errors.

Tips

  • Start with a low temperature (0.2–0.4) for more consistent, factual responses.
  • Use a specific system prompt that includes your company's tone and common answers.
  • Test with a small set of conversations before enabling it for all customers.
  • Keep your API key secure – never expose it in client-side code.
  • Monitor your OpenAI usage to avoid unexpected costs.

Troubleshooting

If the integration doesn't work as expected, try these in order:

  1. Check your API key – Go to OpenAI's platform and verify the key is valid and has credits.
  2. Check Intercom's app status – Visit the Intercom status page to see if the OpenAI app is having issues.
  3. Review webhook logs – In Intercom, go to Developer > Webhooks and see if events are being sent. If not, the webhook URL might be wrong.
  4. Test the OpenAI API directly – Use a tool like curl or Postman to send a simple prompt to OpenAI and see if you get a response.
  5. Reinstall the app – If using the native integration, uninstall and reinstall the OpenAI app from Intercom.
  6. Check Zapier task history – If using Zapier, look at the task history to see if the steps ran successfully and where they failed.

If none of these work, contact Intercom support (for the native integration) or OpenAI support (for API issues).

Frequently Asked Questions

Do I need a paid Intercom plan to use the OpenAI integration?

Yes, the native OpenAI app is available on Intercom's Pro plan and above, or during a trial. On lower plans, you can still use the Zapier or custom webhook method.

Can I use this integration for customer support automatically?

Yes, you can set it up to auto-reply to new conversations, but you should configure it carefully to avoid sending AI responses to sensitive issues. You can also use it as a draft suggestion for human agents.

Which OpenAI model should I use?

For most support use cases, gpt-4o-mini offers a good balance of speed and quality. If you need more complex reasoning, use gpt-4o, but it's more expensive.

Will the AI responses be in the customer's language?

Yes, if you instruct the AI in the system prompt to respond in the same language as the customer's message. The model can detect the language.

Can I integrate OpenAI with Intercom using a no-code tool?

Yes, Zapier is the most common no-code option. You can also use Make (formerly Integromat) or IFTTT, but Zapier has the most direct integration.

Is there any risk of exposing sensitive data?

Yes, if you send conversation content to OpenAI, it will be processed by their servers. Avoid sending personal data (like credit card numbers) unless you have proper consent and data processing agreements.