Agents

agents.md

An agent is the main operating unit in Leilani.

Each agent owns its SIP connection, instructions, voice, greeting, access list, directory, knowledge, tools, call history, active calls, and balance.

Core concepts

Connection

The SIP account Leilani registers to so it can receive inbound calls and transfer callers.

Behavior

Instructions, greeting, voice, language hint, max duration, and tool guidance that shape live conversations.

Access

The owner and users who can open or administer the agent in the console.

Resources

The Directory, Knowledge Base, Functions, MCP Servers, caches, JSON Web Tokens, and web search allowlist available during calls.

Agent lifecycle

  1. Create the agent from the app menu.
  2. Configure SIP registration and behavior.
  3. Add routing, knowledge, and tools.
  4. Restart the agent when connection details change.
  5. Test live calls from the Inbox.
  6. Monitor registration, balance, and call metrics from the Dashboard.

Configuration

Set SIP connection details, voice, language, greeting, instructions, transcript email, users, web search allowlist, and max duration.

Instructions

Write reliable callflow instructions for tone, collection, tools, safety, and escalation.

Dashboard

Monitor registration, balance, active calls, recent usage, and call search.