cardinal

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.

lib/eden_actions.ex
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
KeyMeaning
rpcOne of your own app's @rpc paths. Another app's is ignored
title, descriptionWhat the model and the card show
input_schemaThe RPC's arguments as a JSON schema object
rectypesThe RecTypes the action works on
recordThe argument that names the record
rectype_argThe argument that names its RecType, when rectypes has several
result_rectypeThe 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.

rectypes/<your_rectype>.yaml
ai: false            # the whole RecType
fields:
  - {fieldname: notes, fieldtype: Text, label: Notes, ai: false}   # one field

Eden's RPCs

All answer POST /api/rpc/eden.<module>.<function> and run as the caller.

ModuleFunctions
chatpost, messages, stop, sources, export, starters, skills, context, feedback
conversationslist, rename, delete (own conversations only)
proposalsconfirm, preview, automation, workflow, action, mcp
mcpconnect
mcp_appsresource, call
voicemodels, 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>:

EventMeans
eden.startA run began. Each event carries seq from 0; a retried run starts at 0 again
eden.deltaMore answer text
eden.toolA tool call finished
eden.steerEve read a follow-up
eden.doneThe answer is written
eden.mcp.connectedAn 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

RoutePage
/api/eden/mcpMCP server
/api/eden/mcp-oauth-callbackExternal MCP servers
/api/eden/mcp-eventsMCP events

On this page