For app builders
Let Eve propose your app's actions, keep fields from the model, and call Eden's RPCs.
Your app needs no dependency on Eden. Eden looks for a few things in each installed app and uses them when Eden is there.
Let Eve propose an action
Define <App>.EdenActions with actions/0. Eve can then put a card on her answer that calls one of your RPCs when the user clicks Confirm.
defmodule Crm.EdenActions do
def actions do
[
%{
rpc: "crm.crm_lead.convert_to_deal",
title: "Convert to deal",
description: "Turn a lead into a deal. Returns the new deal's ID.",
rectypes: ["CRM Lead"],
record: "lead",
result_rectype: "CRM Deal",
input_schema: %{
"type" => "object",
"properties" => %{"lead" => %{"type" => "string"}},
"required" => ["lead"]
}
}
]
end
end| Key | Meaning |
|---|---|
rpc | One of your own app's @rpc paths. Another app's is ignored |
title, description | What the model and the card show |
input_schema | The RPC's arguments as a JSON schema object |
rectypes | The RecTypes the action works on |
record | The argument that names the record |
rectype_arg | The argument that names its RecType, when rectypes has several |
result_rectype | The RecType the result names, for the card's link |
Eve's prompt lists your actions with their schemas.
When she proposes one, Eden checks the input against the schema and that the user can read the record. It stores a card and calls nothing.
Confirm calls your RPC as the user, once. Its requires:, argument checks and the record's permissions apply. A refusal shows on the card.
Keep data from the model
Mark a RecType or a field ai: false in its YAML. Eve, Adam's AI steps and the MCP server never see it, whatever the user's rights.
ai: false # the whole RecType
fields:
- {fieldname: notes, fieldtype: Text, label: Notes, ai: false} # one fieldEden's RPCs
All answer POST /api/rpc/eden.<module>.<function> and run as the caller.
| Module | Functions |
|---|---|
chat | post, messages, stop, sources, export, starters, skills, context, feedback |
conversations | list, rename, delete (own conversations only) |
proposals | confirm, preview, automation, workflow, action, mcp |
mcp | connect |
mcp_apps | resource, call |
voice | models, download, remove (System Manager) |
eden.chat.post takes content, and conversation after the first message. It writes the question and queues the turn.
Events
A turn streams on the user's topic user:<name>:
| Event | Means |
|---|---|
eden.start | A run began. Each event carries seq from 0; a retried run starts at 0 again |
eden.delta | More answer text |
eden.tool | A tool call finished |
eden.steer | Eve read a follow-up |
eden.done | The answer is written |
eden.mcp.connected | An MCP server's OAuth connect finished |
Saving Eden Settings sends eden.settings on the tenant topic, which makes every open desk reload its boot. The boot carries apps.eden.enabled and apps.eden.chat_layout.
HTTP routes
| Route | Page |
|---|---|
/api/eden/mcp | MCP server |
/api/eden/mcp-oauth-callback | External MCP servers |
/api/eden/mcp-events | MCP events |