Intercom Integration • Lead Quality

Block throwaway email accounts from flooding your Intercom inbox

Emailyze enriches every new Intercom contact with risk score, disposable flag, and provider type — automatically. Use it to close fake conversations before a human ever sees them.

Webhook • Custom attributes • Automation rules
Intercom › Inbox › Conversation #9241

Anonymous User

[email protected]

Custom Attributes

Email Risk Score91
Is DisposableYes
Providerdisposable

Bot note: Auto-closed — disposable email detected by Emailyze

How it works

Three steps from new contact to enriched profile.

1

Webhook on contact creation

In the Intercom Developer Hub, subscribe to the contact.created webhook topic. Intercom POSTs to your endpoint the moment a new user or lead is created.

2

Call Emailyze API

Your webhook receiver extracts the email from the payload and calls https://api.emailyze.xyz/v1/check/ with your X-API-Key header. You get a risk score in under 200ms.

3

Write back to Intercom

Use the Intercom Contacts API to PUT the risk score, is_disposable flag, and provider_type onto the contact's custom attributes. Automation rules fire based on those values.

Custom attributes added to every contact

emailyze_risk_score
emailyze_is_disposable
emailyze_provider_type

Automation rules you can build

Once the custom attributes are set, Intercom's automation engine handles everything else.

Auto-close disposable conversations

Trigger a bot to immediately close conversations from disposable addresses, sending a polite message explaining the policy. Keeps your inbox clean without agent effort.

Route to spam inbox

Assign flagged conversations to a dedicated 'Spam / Review' inbox. Your team can bulk-review and delete at their own pace without disrupting live support.

Block bot handoff

Prevent disposable-email users from being escalated to a human agent. Keep them in the bot flow or close — no wasted seat time on fake leads.

Qualify leads by email quality

Use emailyze_risk_score as a lead qualification gate. Only route leads with a risk score below 40 to your sales-assist bot or human team.

Node.js webhook receiver

A complete Express handler: receives the Intercom contact.created event, calls Emailyze, and writes risk data back to the contact in under 500ms total.

  • Handles contact.created topic — fires for both users and leads
  • Emailyze responds in <200ms — well within Intercom webhook timeout
  • PUT to /contacts/{id} updates custom attributes atomically
  • Automation rules trigger immediately after the attribute update
webhook.ts — Intercom contact.created handler
// Express webhook receiver — Intercom contact.created
import express from "express";
import fetch from "node-fetch";

const app = express();
app.use(express.json());

const EMAILYZE_KEY = process.env.EMAILYZE_API_KEY;
const INTERCOM_TOKEN = process.env.INTERCOM_ACCESS_TOKEN;

app.post("/webhooks/intercom", async (req, res) => {
  const { type, data } = req.body;
  if (type !== "contact.created") return res.sendStatus(200);

  const contactId = data.item.id;
  const email = data.item.email;
  if (!email) return res.sendStatus(200);

  // 1. Call Emailyze
  const check = await fetch(
    `https://api.emailyze.xyz/v1/check/?email=${encodeURIComponent(email)}`,
    { headers: { "X-API-Key": EMAILYZE_KEY } }
  ).then((r) => r.json());

  // 2. Write custom attributes back to Intercom contact
  await fetch(`https://api.intercom.io/contacts/${contactId}`, {
    method: "PUT",
    headers: {
      Authorization: `Bearer ${INTERCOM_TOKEN}`,
      "Content-Type": "application/json",
      Accept: "application/json",
    },
    body: JSON.stringify({
      custom_attributes: {
        emailyze_risk_score: check.risk_score,
        emailyze_is_disposable: check.is_disposable,
        emailyze_provider_type: check.provider_type,
      },
    }),
  });

  res.sendStatus(200);
});

app.listen(3000);

Stop fake leads before they hit your inbox

Get an API key, set up the webhook in minutes, and let automation rules handle the rest.

Free plan included • No credit card required • Cancel anytime