AI로 이번 주 매출이 달라진 이유 설명하기
에이전트가 2주치 지표를 가져와 실제 명령으로 변화량을 계산하고, 단서와 함께 가능성 높은 요인을 설명합니다.
- 읽기 전용 연결
- 셸
- 예산 상한
실제 실행 보기
2026년 10월 7일에 기록된 실제 실행을 다시 재생합니다. 모델: openai/gpt-6-luna.
입력
{
"period": "last_week"
}성공run_9550d4a9f62feef78ceb948d1c55da88$0.05 중 $0.004644
- 대기 중예산 $0.05 예약됨
- MicroVMmicroVM ready
- MicroVMworker started · shell on · web off
- 연결analytics GET /metrics?period=last_week
- 결과
analytics GET → 200 - 셸
$ python3 - <<'PY' from decimal import Decimal metrics={ 'Signups':(294,196,0), 'Active users':(280… - MicroVMmicroVM destroyed
- 성공모델 호출 3회, 토큰 6,404개기록된 출력 (영어)
Revenue fell $546.85 (2.34%) in 2026-W40 vs. 2026-W39
Metric Current Previous Change Signups 294 196 +98 (+50.00%) Active users 2,803 2,521 +282 (+11.19%) Revenue $22,853.85 $23,400.70 −$546.85 (−2.34%) Churned accounts 8 8 0 (0.00%) Likely drivers
- Signups and active users rose while revenue fell; this may mean user growth did not translate into higher revenue during the week.
- Churned accounts were unchanged as revenue declined; the revenue drop may not be reflected in this churn count.
What this data cannot tell us
- It does not explain why revenue changed or show revenue per user, signup conversion, or churn rates.
- 워커 폐기됨$0.004644 청구, $0.045356 반환
모델 $0.000644 · 웹 $0.00 · 컴퓨팅 $0.004
직접 실행하기
요청이 모두 채워진 상태로 플레이그라운드에서 샘플을 엽니다. 내 계정에서 표시된 예산 안에서, 같은 읽기 전용 샘플 시스템을 대상으로 실행됩니다.
이 샘플의 예산: $0.05
작동 방식
모델은 산술에 약하므로 셸을 켭니다. 에이전트는 모든 차이와 백분율을 머릿속이 아니라 샌드박스에서 계산합니다. 그런 다음 가입자, 활성 사용자, 이탈의 움직임을 매출과 연결하고, 데이터로는 알 수 없는 부분을 밝힙니다.
에이전트가 할 수 있는 일과 할 수 없는 일
권한은 요청의 일부입니다. 여기에 나열되지 않은 것은 실행에서 사용할 수 없습니다.
| 설정 | 허용 범위 |
|---|---|
| 연결 | analytics: ephemer.al/api/samples/analytics-api에서 GET만 허용 |
| 웹 | 꺼짐 |
| 셸 | 켜짐, 밀폐된 머신 안에서 |
| 파일 | 없음 |
| 데이터 무보존 | 꺼짐: 기록이 30일간 보관됩니다 |
| 예산 | $0.05, 하드 캡 |
| 시간 제한 | 120초 |
자격 증명은 머신 안으로 들어가지 않습니다. 브로커가 각 호출에 자격 증명을 추가하고 위의 메서드를 강제합니다.
코드
샘플이 보내는 정확한 요청입니다. 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전체 요청 본문 request.json
파일이 인라인으로 포함된 같은 본문입니다.
{
"prompt": "Explain how revenue changed in input.period. Call GET /metrics?period=<input.period> on the analytics connection. Use the shell to calculate the absolute and percentage change of each metric against the previous week; do not do arithmetic in your head. Reply in Markdown, at most 180 words: a headline with the revenue change in dollars and percent, a table of the four metrics with current, previous and change, then 'Likely drivers' (two bullets that link the metrics, worded as hypotheses) and 'What this data cannot tell us' (one bullet). Use only what the data returns and never guess; if a call fails or a field is missing, say so.",
"input": {
"period": "last_week"
},
"connections": {
"analytics": {
"type": "http",
"url": "https://ephemer.al/api/samples/analytics-api",
"auth": {
"type": "bearer",
"token": "sample_read_key"
},
"allowed_methods": [
"GET"
],
"instructions": "GET /metrics?period=last_week or period=2026-W40 returns signups, active_users, revenue_cents and churned_accounts for that ISO week, with the same figures for the week before. Amounts are in cents."
}
},
"shell": true,
"timeout_seconds": 120,
"max_cost_micros": 50000
}