CRM 기반 AI 리드 자격 평가와 점수 매기기

에이전트가 읽기 전용 CRM에서 리드와 해당 회사를 읽고, 이상적인 고객 프로필에 비추어 점수를 매기고 다음 조치를 제안합니다.

  • 파일
  • 읽기 전용 연결
  • 콜백
  • 예산 상한

실제 실행 보기

2026년 10월 7일에 기록된 실제 실행을 다시 재생합니다. 모델: openai/gpt-6-luna.

입력
{
  "lead_id": "lead_501"
}
성공run_6635489edcf97c044f218cc28b041a6d$0.03 중 $0.0036
  1. 대기 중예산 $0.03 예약됨
  2. MicroVMmicroVM ready
  3. MicroVMworker started · shell off · web off
  4. 연결crm GET /leads/lead_501
  5. 파일read icp.md
  6. 결과crm GET → 200
  7. 연결crm GET /accounts/acct_91
  8. 결과crm GET → 200
  9. MicroVMmicroVM destroyed
  10. 성공모델 호출 3회, 토큰 4,687개기록된 출력 (영어)
    json
    {
      "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."
    }
  11. 워커 폐기됨$0.0036 청구, $0.0264 반환
모델 $0.0004 · 웹 $0.00 · 컴퓨팅 $0.0032

직접 실행하기

요청이 모두 채워진 상태로 플레이그라운드에서 샘플을 엽니다. 내 계정에서 표시된 예산 안에서, 같은 읽기 전용 샘플 시스템을 대상으로 실행됩니다.

이 샘플의 예산: $0.03

작동 방식

이상적인 고객 프로필은 영업팀이 편집할 수 있는 파일입니다. 에이전트는 GET만 허용하는 CRM 연결로 리드와 계정을 읽고, 이유와 위험 요소가 담긴 점수를 반환하며, CRM에는 절대 다시 쓰지 않습니다.

에이전트가 할 수 있는 일과 할 수 없는 일

권한은 요청의 일부입니다. 여기에 나열되지 않은 것은 실행에서 사용할 수 없습니다.

설정허용 범위
연결
crm: ephemer.al/api/samples/crm-api에서 GET만 허용
웹꺼짐
셸꺼짐
파일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
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

파일이 인라인으로 포함된 같은 본문입니다.

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
}

더 알아보기

관련 샘플

esc

“”와(과) 일치하는 항목이 없습니다.