CRM のデータによる AI のリード選定とスコアリング
エージェントが読み取り専用の CRM からリードとその企業を読み、理想の顧客像に照らしてスコアをつけ、次のアクションを提案します。
- ファイル
- 読み取り専用の接続
- コールバック
- 予算の上限
実際の実行を見る
2026年10月7日 の実際の実行を再生しています。モデル: openai/gpt-6-luna。
入力
{
"lead_id": "lead_501"
}成功run_6635489edcf97c044f218cc28b041a6d$0.03 のうち $0.0036
- 待機中予算 $0.03 を確保
- MicroVMmicroVM ready
- MicroVMworker started · shell off · web off
- 接続crm GET /leads/lead_501
- ファイル
read icp.md - 結果
crm GET → 200 - 接続crm GET /accounts/acct_91
- 結果
crm GET → 200 - MicroVMmicroVM destroyed
- 成功モデル呼び出し 3 回、トークン 4,687記録された出力(英語)
{ "score": 95, "tier": "A", "reasons": [ "Company has 1,200 employees, within the 100–5,000 employee ICP range.", "VP of Engineering wants to run agents over carrier APIs and requested a demo for 8 engineers.", "Lead mentioned a security review and a Q4 budget." ], "risks": [], "next_action": "Contact within a day to follow up on the demo request and discuss the security review." } - ワーカーを破棄$0.0036 を請求、$0.0264 を解放
モデル $0.0004 · Web $0.00 · コンピュート $0.0032
自分で実行する
リクエスト全体が入力された状態で、サンプルをプレイグラウンドで開きます。実行はご自身のアカウントで、表示された予算の範囲内で、同じ読み取り専用のサンプルシステムに対して行われます。
このサンプルの予算: $0.03
仕組み
理想の顧客像は、営業チームが編集できるファイルです。エージェントは GET のみの CRM 接続でリードとアカウントを読み、理由とリスクを添えたスコアを返します。CRM への書き戻しは一切行いません。
エージェントにできること、できないこと
権限はリクエストの一部です。ここに挙げていないものは、実行では利用できません。
| 設定 | 許可 |
|---|---|
| 接続 | crm: GET のみ、ephemer.al/api/samples/crm-api へ |
| Web | オフ |
| シェル | オフ |
| ファイル | icp.md(読み取り専用) |
| ゼロデータ保持 | オフ: 記録は 30 日間保存されます |
| 予算 | $0.03、厳格な上限 |
| タイムアウト | 60 秒 |
認証情報がマシンに入ることはありません。ブローカーが各呼び出しに認証情報を付与し、上記のメソッドだけを通します。
コード
サンプルが送信する正確なリクエストです。EPHEMERAL_API_KEY には、組織のメンバーキーを設定してください。
curl -X POST $EPHEMERAL_URL/v1/runs \
-H "Authorization: Bearer $EPHEMERAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d @request.jsonリクエストに含まれるファイル
インラインで渡すため、事前にアップロードする必要はありません。エージェントには、それぞれが読み取り専用のファイルとして見えます。
icp.md
# Ideal customer profile
Good fit (score up):
- Engineering or operations teams at companies with 100 to 5,000 employees.
- Wants to automate work over its own APIs (support, finance operations, monitoring).
- Mentions a security review, data retention needs, a budget or a timeline.
- Role: VP or head of engineering, operations, support or finance; or a founder with budget.
Poor fit (score down):
- Students, hobby projects, no budget or timeline.
- Individuals evaluating for someone else.
- Procurement cycles longer than 6 months for a first purchase.
Score 0 to 100. Tier A (70+): contact within a day. Tier B (40 to 69): nurture. Tier C (below 40): no sales time.
リクエスト本文の全体 request.json
同じ本文を、ファイルをインラインにした形で示します。
{
"prompt": "Qualify the CRM lead in input.lead_id. Read the lead with GET /leads/{id} and its company with GET /accounts/{account_id}, then score it against icp.md. Reply with one JSON object and nothing else: {\"score\": number, \"tier\": \"A\"|\"B\"|\"C\", \"reasons\": string[] (max 3), \"risks\": string[] (max 2), \"next_action\": string}. Use only what the data returns and never guess; if a call fails or a field is missing, say so.",
"input": {
"lead_id": "lead_501"
},
"files": [
{
"path": "icp.md",
"content": "# Ideal customer profile\n\nGood fit (score up):\n- Engineering or operations teams at companies with 100 to 5,000 employees.\n- Wants to automate work over its own APIs (support, finance operations, monitoring).\n- Mentions a security review, data retention needs, a budget or a timeline.\n- Role: VP or head of engineering, operations, support or finance; or a founder with budget.\n\nPoor fit (score down):\n- Students, hobby projects, no budget or timeline.\n- Individuals evaluating for someone else.\n- Procurement cycles longer than 6 months for a first purchase.\n\nScore 0 to 100. Tier A (70+): contact within a day. Tier B (40 to 69): nurture. Tier C (below 40): no sales time.\n"
}
],
"connections": {
"crm": {
"type": "http",
"url": "https://ephemer.al/api/samples/crm-api",
"auth": {
"type": "bearer",
"token": "sample_read_key"
},
"allowed_methods": [
"GET"
],
"instructions": "A CRM. GET /leads lists leads. GET /leads/{id} returns a lead with notes and activity. GET /accounts/{id} returns the company (industry, employees, country, revenue, tech, customer, open_deals)."
}
},
"shell": false,
"timeout_seconds": 60,
"max_cost_micros": 30000
}