Skip to content

Context plugins

A context plugin is a web service of yours, such as your account database, that Inboxen asks about a customer’s email address. Its answer appears as a panel in the customer sidebar beside each conversation, and the fields it marks for AI can also go into AI drafts. Settings › Context plugins is for owners and admins of a brand. Context plugins are part of the Business plan, and a brand can have up to 10. On other plans you can’t add or test one, and plugins a brand already has are off: agents don’t see their panels and drafts don’t use them. They stay saved, so you can still edit or remove them, and they work again once an owner chooses Business.

  1. Click Add a plugin.
  2. Enter a Name, up to 60 characters. It heads the panel in the sidebar until the plugin answers with a title of its own.
  3. Enter the Endpoint: the public https address Inboxen posts to, with no ? or # part.
  4. Under Signing secret, click Generate a secret, then Copy it into your plugin’s configuration. Inboxen shows it only once. You can also paste a secret of your own: whsec_ followed by 24 to 64 random bytes in Base64.
  5. Click Add plugin.
  6. Under Look up an address, enter a customer’s address and click Test. You see the panel as an agent would, with an eye on each field AI may use. Test always asks the plugin, even while its panel is off.

Your plugin decides which fields it returns and which are AI-visible. Each plugin card has two switches:

  • Show this panel in the customer sidebar.
  • Let draft replies use the fields it marks AI-visible. Fields reach a draft only while AI is on and Customer context from plugins is on under Settings › AI, in What drafts may use. The card warns you when one of them is off. A draft takes at most 30 plugin fields, and never from an answer older than five minutes.

Edit changes the name, endpoint or secret. After saving, the card shows only the secret’s last four characters, and changing the endpoint deletes the stored secret, so enter it again. Remove takes the panel out of every sidebar and its fields out of drafts at once, and Inboxen forgets the secret.

Inboxen sends the customer’s main email address and nothing else about the customer or the conversation. It asks:

  • when an agent opens a conversation and the plugin’s panel is open in the customer sidebar (a collapsed panel asks nothing);
  • when AI prepares a draft, if the plugin’s fields may go into drafts;
  • when you click Test, or an agent clicks Try again.

An answer is reused for five minutes per address. Inboxen keeps answers in memory only, for at most an hour, and asks a plugin only about customers of its own brand.

  • The fields, with links that open in a new tab, and an eye on each field AI may use.
  • A note when the plugin has no record for the customer’s address, or the customer has no address.
  • Not answering, with the reason, such as no answer in time or a secret that doesn’t match, and a Try again button. For up to an hour, the panel shows the last answer and when it came.

After five failed calls in a row, Inboxen stops asking that plugin for a minute. When a call fails, the plugin’s card in Settings says why and what to check.

Your plugin is an https endpoint. Inboxen sends it {"version": 1, "email": "…"} in a signed POST, and it answers within two seconds with sections of labelled fields. Build a context plugin has the full contract, code to check the signature, and a security checklist.

For help building a plugin, write to support@inboxen.net.