Ravi Contacts
Manage contacts associated with your identity. Contacts store people you interact with — their email, phone, display name, and nickname.
Commands
CODEBLOCK0
Create/update fields: --email, --phone, --display-name, --nickname, INLINECODE4
JSON Shapes
ravi contacts list:
CODEBLOCK1
ravi contacts get <uuid>:
CODEBLOCK2
Resolving Recipients
When the user asks to email or text someone by name (e.g. "email Alice" or "text Bob"), always search contacts first to resolve their name to an email address or phone number:
CODEBLOCK3
This is the primary integration point with ravi-email-send and SMS workflows.
Key Concepts
- - Auto-contacts — Ravi automatically creates contacts from email and SMS interactions. When you send or receive a message, a contact is created or updated for the other party.
- Manual contacts — You can also create contacts manually via the CLI.
- Trusted contacts — Contacts marked with
--is-trusted are classified as trusted senders. Emails from trusted contacts are routed to the email_trusted SSE channel, distinct from email_owner (your own emails) and email_untrusted (unknown senders). By default, contacts are not trusted. interaction_count — Tracks how many email/SMS interactions you have had with this contact. Auto-incremented by the system.last_interaction_dt — Timestamp of the most recent email or SMS interaction with this contact. Updated automatically.
Important Notes
- - Contacts are stored in plaintext — do not store sensitive information in contact fields. Use ravi-passwords for credentials and ravi-secrets for API keys.
- Auto-contacts from interactions — sending or receiving email/SMS automatically creates or updates contacts. You do not need to manually create contacts for people you interact with.
- Phone numbers in E.164 format — always include the country code (e.g.,
+15551234567).
Full API Reference
For complete endpoint details, request/response schemas, and parameters: Contacts
Related Skills
- - ravi-identity — Get your own email address and phone number
- ravi-passwords — Store website credentials (not contact info)
- ravi-secrets — Store API keys and env vars (not contact info)
- ravi-inbox — Read incoming email and SMS messages
- ravi-email-send — Send emails to your contacts
Ravi 联系人
管理与您的身份关联的联系人。联系人存储您与之互动的人员信息——包括他们的电子邮件、电话、显示名称和昵称。
命令
bash
列出所有联系人
ravi contacts list
按姓名或电子邮件模糊搜索联系人(电话不支持模糊搜索)
ravi contacts search alice
获取单个联系人
ravi contacts get
创建联系人
ravi contacts create --email alice@example.com --display-name Alice Smith
创建时附带电话和昵称
ravi contacts create --phone +15551234567 --nickname alice
创建完整联系人
ravi contacts create --email bob@corp.com --phone +15559876543 --display-name Bob Jones --nickname bob
更新联系人
ravi contacts update --nickname ally
删除联系人
ravi contacts delete
创建/更新字段: --email、--phone、--display-name、--nickname、--is-trusted
JSON 格式
ravi contacts list:
json
[
{
uuid: ...,
identity: 1,
email: alice@example.com,
phone_number: +15551234567,
display_name: Alice Smith,
nickname: alice,
is_trusted: false,
source: auto,
interaction_count: 5,
lastinteractiondt: 2026-03-01T14:00:00Z,
created_dt: 2026-02-20T10:30:00Z,
updated_dt: 2026-02-28T09:15:00Z
}
]
ravi contacts get :
json
{
uuid: ...,
email: alice@example.com,
phone_number: +15551234567,
display_name: Alice Smith,
nickname: alice,
is_trusted: false,
source: auto,
interaction_count: 5,
lastinteractiondt: 2026-03-01T14:00:00Z,
created_dt: 2026-02-20T10:30:00Z,
updated_dt: 2026-02-28T09:15:00Z
}
解析收件人
当用户要求按姓名发送电子邮件或短信时(例如给 Alice 发邮件或给 Bob 发短信),始终先搜索联系人,将姓名解析为电子邮件地址或电话号码:
bash
步骤 1:按姓名搜索
ravi contacts search Alice
步骤 2:如果匹配到一个结果 → 使用结果中的电子邮件/电话
步骤 3:如果匹配到多个结果 → 与用户确认具体指哪一个
步骤 4:如果没有匹配结果 → 直接向用户询问电子邮件/电话
这是与 ravi-email-send 和短信工作流的主要集成点。
关键概念
- - 自动联系人 — Ravi 会自动从电子邮件和短信互动中创建联系人。当您发送或接收消息时,系统会为对方创建或更新联系人。
- 手动联系人 — 您也可以通过 CLI 手动创建联系人。
- 受信任的联系人 — 标记了 --is-trusted 的联系人被归类为受信任的发件人。来自受信任联系人的电子邮件会被路由到 emailtrusted SSE 通道,与 emailowner(您自己的邮件)和 emailuntrusted(未知发件人)区分开来。默认情况下,联系人不受信任。
- interactioncount — 记录您与该联系人的电子邮件/短信互动次数。由系统自动递增。
- lastinteractiondt — 与该联系人最近一次电子邮件或短信互动的时间戳。自动更新。
重要说明
- - 联系人以明文存储 — 请勿在联系人字段中存储敏感信息。凭据请使用 ravi-passwords,API 密钥请使用 ravi-secrets。
- 来自互动的自动联系人 — 发送或接收电子邮件/短信会自动创建或更新联系人。您无需手动为您互动过的人员创建联系人。
- 电话号码使用 E.164 格式 — 始终包含国家代码(例如 +15551234567)。
完整 API 参考
有关完整的端点详情、请求/响应模式和参数,请参阅:联系人
相关技能
- - ravi-identity — 获取您自己的电子邮件地址和电话号码
- ravi-passwords — 存储网站凭据(非联系人信息)
- ravi-secrets — 存储 API 密钥和环境变量(非联系人信息)
- ravi-inbox — 读取收到的电子邮件和短信消息
- ravi-email-send — 向您的联系人发送电子邮件