Redacta con IA respuestas a solicitudes de reembolso, sin enviarlas nunca
Un agente comprueba una solicitud de reembolso con tu política y redacta una respuesta para que una persona la apruebe. No puede emitir el reembolso.
- Archivos
- Conexión de solo lectura
- Callback
- Límite de presupuesto
Mira una ejecución real
Una ejecución real del 7 oct 2026, reproducida. Modelo: openai/gpt-6-luna.
{
"ticket_id": "tkt_1001",
"today": "2026-10-06"
}- En colapresupuesto de $0.03 reservado
- MicroVMmicroVM ready
- MicroVMworker started · shell off · web off
- Archivo
read refund-policy.md - Conexiónhelpdesk GET /tickets/tkt_1001
- Resultado
helpdesk GET → 200 - MicroVMmicroVM destroyed
- Completada3 llamadas al modelo, 4,442 tokensResultado grabado (en inglés)
Decision: Eligible
Reason: Policy clause 1 allows a full refund within 14 days for an annual plan if no project was created and no API call was made. The ticket shows purchase on 2026-09-28, zero projects, and zero API calls; the request is dated 2026-10-06, within 14 days.
Draft reply: Hi Maria, your annual plan meets the refund criteria. The billing team will process the refund to your original payment method. Best, Support
- Worker destruido$0.002782 cobrados, $0.027218 liberados
Ejecútalo tú mismo
Abre el ejemplo en el playground con la solicitud completa ya rellenada. Se ejecuta en tu propia cuenta, dentro del presupuesto indicado, contra los mismos sistemas de ejemplo de solo lectura.
Presupuesto de este ejemplo: $0.03
Cómo funciona
La política es un archivo y el ticket llega desde una conexión de solo lectura con el helpdesk. El agente decide si la solicitud cumple los requisitos, cita la cláusula en la que se basó y escribe un borrador. Una persona lo aprueba y el sistema de facturación hace el resto.
Lo que el agente puede y no puede hacer
Los permisos forman parte de la solicitud. Todo lo que no figura aquí no está disponible para la ejecución.
| Ajuste | Permitido |
|---|---|
| Conexiones | helpdesk: solo GET, en ephemer.al/api/samples/support-api |
| Web | Desactivado |
| Shell | Desactivado |
| Archivos | refund-policy.md (solo lectura) |
| Retención cero de datos | Desactivada: el registro se conserva 30 días |
| Presupuesto | $0.03, límite estricto |
| Tiempo límite | 60 segundos |
Las credenciales nunca entran en la máquina: un broker las añade a cada llamada y aplica los métodos indicados arriba.
El código
Esta es la solicitud exacta que envía el ejemplo. Define EPHEMERAL_API_KEY con una clave de miembro de tu organización.
curl -X POST $EPHEMERAL_URL/v1/runs \
-H "Authorization: Bearer $EPHEMERAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d @request.jsonArchivos de la solicitud
Se pasan en línea, así que no hay que subir nada antes. El agente ve cada uno como un archivo de solo lectura.
refund-policy.md
# Refund policy
1. Annual plans may be refunded in full within 14 days of purchase if no project has been created and no API call has been made.
2. After 14 days, or after any use, annual plans are refunded pro rata for the unused full months only, at our discretion.
3. Monthly plans are not refunded for the current month; cancelling stops the next charge.
4. A refund is issued by the billing team only, to the original payment method. Never promise a date.
5. Always be polite, concise and plain. Do not offer discounts.
Cuerpo completo de la solicitud request.json
El mismo cuerpo, con los archivos en línea.
{
"prompt": "Handle the refund request in the helpdesk ticket input.ticket_id (GET /tickets/{id}); today's date is input.today. Apply refund-policy.md. Reply in Markdown with: Decision (eligible, not eligible or needs a human, one line), Reason (cite the policy clause number and the ticket facts you used), and Draft reply (under 90 words, in the customer's language). The draft is for a human to review: never say a refund has been issued, only that the billing team will process it if the decision is eligible. Use only what the data returns and never guess; if a call fails or a field is missing, say so.",
"input": {
"ticket_id": "tkt_1001",
"today": "2026-10-06"
},
"files": [
{
"path": "refund-policy.md",
"content": "# Refund policy\n\n1. Annual plans may be refunded in full within 14 days of purchase if no project has been created and no API call has been made.\n2. After 14 days, or after any use, annual plans are refunded pro rata for the unused full months only, at our discretion.\n3. Monthly plans are not refunded for the current month; cancelling stops the next charge.\n4. A refund is issued by the billing team only, to the original payment method. Never promise a date.\n5. Always be polite, concise and plain. Do not offer discounts.\n"
}
],
"connections": {
"helpdesk": {
"type": "http",
"url": "https://ephemer.al/api/samples/support-api",
"auth": {
"type": "bearer",
"token": "sample_read_key"
},
"allowed_methods": [
"GET"
],
"instructions": "A helpdesk. GET /tickets lists tickets (id, subject, status, language). GET /tickets/{id} returns one ticket with customer, context (order or invoice facts) and the full message thread. Amounts are in cents."
}
},
"shell": false,
"timeout_seconds": 60,
"max_cost_micros": 30000
}