Interactive demo · eGain API × APIMatic

Watch a coding agent build an agent-assist console on eGain from one prompt.

Install the eGain Context Plugin, ask your agent for CaseAssist, and open what it builds: a customer question in, a grounded answer with cited articles out, and the loop closed with a rating or a knowledge-gap suggestion, all through the eGain SDK APIMatic generated.

Click the demo to start. Copy and run the install command, then pick the CaseAssist prompt. Interactive portal demo opens the live eGain developer portal inside the demo.

How it works

From install to a working agent console

The plugin gives your agent the eGain SDK's real client, auth, methods, models and error types, so the code it writes is right the first time.

1

Install the plugin

One command adds the eGain SDK skills (30 skills and a planner agent) to Claude Code, Cursor, GitHub Copilot or Codex.

$ npx context-plugins install https://egn-apimatic-poc.pages.dev/__downloads/plugin.zip
2

Ask for CaseAssist

One prompt. The agent plans first: it reads the plugin's skills and the SDK map, and writes a contract sheet before a line of code.

Build CaseAssist: grounded answers with citations for agents, then rate the source or report the knowledge gap
3

Open what it built

Paste a customer question, read eGain's grounded answer and its sources, then rate the article or report the gap.

Runs on demo data through the same SDK until a eGain key is set.

Under the hood

eGain calls CaseAssist makes

All through the APIMatic TypeScript SDK, e-gain-knowledge-api 4.0.0, shipped inside the context plugin.

AnswersA certified or generative answer grounded in your articles, with the references it used.answers.getBestAnswer
{ portalId, q, lang }
SearchHybrid keyword and semantic search for the related articles, opened in full on click.search.aiSearch
articleApi.getArticleById
Close the loopRate the cited article, or file a suggestion for the gap. Only on the agent's click, never twice.articleApi.rateArticle
suggestionApi.makeSuggestion
PortalsThe knowledge portals the token can reach, in the header to pick one.portalApi.getMyPortals
{ lang, acceptLanguage }
Generated from eGain's OpenAPI spec

Everything a developer needs, from one spec

APIMatic built all three from eGain Knowledge API 4.0.0: 83 operations across 20 groups, in eGain's own branding.

Developer portal

API reference with a live playground

Every operation with request and response examples, code samples in C#, Python and TypeScript, and an llms.txt for AI tools.

See getBestAnswer →
SDKs

C#, Python and TypeScript

Typed clients with retries, timeouts, typed error arms per operation and a single transport seam for testing.

Download the SDKs →
Context plugin

30 skills and a planner agent

Teaches coding agents to use the SDKs correctly: plan first, ground every call in the SDK map, handle every error arm.

Install the plugin →

Start building on eGain

Install the plugin, then ask your assistant for your first eGain integration in C#, Python or TypeScript.

$ npx context-plugins install https://egn-apimatic-poc.pages.dev/__downloads/plugin.zip