Skip to content
Docs
On this page Providers 1/4
Internal — not published

Every model call names an AI account and a model. An AI account is a saved connection to one provider, with its keys encrypted at rest. Calls reach the provider in two ways: single calls, for everything that asks one question and reads one answer, and agent sessions, for the reply agent and Ask Kit, which run the tool loop.

Providers

ProviderWhat the account holdsNotes
Amazon BedrockA region, and either an API key or an access key pairAn account can name a Bedrock Guardrail, which the agents then apply on the provider side
OpenAIAn API key, and optionally a base URLThe base URL lets any OpenAI-compatible server stand in
AnthropicAn API keyAgent sessions are capped at 4,096 output tokens. Anthropic has no embedding models, so it is not offered as the embedding model

Any other provider is refused.

Single calls

Single calls share one client per AI account and come in a few shapes:

ShapeUsed by
Plain textThe campaign AI Steps, and the summaries and image descriptions made when a knowledge document is added
Structured answer, checked against an expected shape, retried on a bad shape, with a fallback valueLead scoring, lead research
Structured answer with the caller’s own check; each failed attempt adds the problems to the conversation, and the call gives up after 3AI flow drafts
EmbeddingsKnowledge documents, memories and search queries
Model listThe model picker in Settings

Each single call is logged with the provider, the kind of call, the model, the tokens (cached tokens too), why the model stopped, how long it took and whether it succeeded. Agent sessions talk to the provider through the agent framework and are not logged this way.

Model slots

SlotSet inUsed by
Workspace chat modelAI model in SettingsThe reply agent, Ask Kit, lead scoring, AI flow drafts, lead research, knowledge document summaries and image descriptions
Workspace embedding modelAI model in SettingsKnowledge passages, memories and search queries
Product modelThe product’s AI modelThe reply agent when the conversation is about that one product; lead scoring when every criterion belongs to it
Step modelThe campaign Step’s settingsAI personalize, AI reads the reply, AI scores the reply

A product that names an AI account but no model borrows the workspace’s model when both use the same account. The reply agent falls back to the workspace chat model when its session cannot be built on the product’s model. Lead scoring falls back when the call on the product’s model fails. A session picks up a changed workspace model, or a changed AI account, on its next message after it has gone idle.

Evals

The eval scripts drive the real inbound path: a message goes in as if it arrived on a channel, the agent takes its turn, and the script records what happened. The harness starts only the parts of the backend the agent needs. The campaign engine stays out, so the harness does not clash with a backend already running. Sending is replaced with a stub that only writes the outbound message to the timeline, so Submit reply succeeds and nothing is delivered.

ScenarioWhat it checks
KB1Reply quality in six languages, each message run once with knowledge and once with the passages removed as a control
KB220 labelled conversations for reply intent, BANT scoring and memory
KB3Adversarial, long-context and CRM-action cases, with the CRM before and after each turn and the list of tool calls
KB4Four product knowledge bases: whether the agent searches the right product and states the right facts

The target workspace needs a chat model, an embedding model and one messaging account (email is preferred). KB4 expects its products to exist already. Each script writes its results as JSON lines to an evaluation reports folder inside the backend, which is not in the repository. Run a script inside the backend container:

docker exec edgr-backend bun run scripts/eval-lang-scenario.ts          # KB1
docker exec edgr-backend bun run scripts/eval-intent-scoring-scenario.ts  # KB2
docker exec edgr-backend bun run scripts/eval-adversarial-scenario.ts     # KB3
docker exec edgr-backend bun run scripts/eval-multiproduct-scenario.ts    # KB4

To choose the messaging account yourself, pass its id:

docker exec -e EVAL_MESSAGING_CREDENTIAL_ID=<account id> edgr-backend bun run scripts/eval-lang-scenario.ts
Docs
EN VI