This repository contains a working implementation for building custom internal agents in Plain.
If you're looking to build a support agent that answers customers, see this instead.
There are two example agent implementations you can find.
| Package | Agent built with | Reach for it when |
|---|---|---|
example-eve-agent |
Vercel eve | you want durable sessions and a working harness. |
example-aisdk-agent |
Vercel AI SDK | you want to own the model loop and build your own harness. |
Both agents are built with several tools on top of Plain's API:
- Listing and reading thread details
- Searching through your knowledge sources in Plain
- Reply to customer threads (gated behind human approval)
To interact with the custom agents, you can start a new "Ask Sidekick" conversation in Plain and pick your custom agents.