Skip to content

[IMP][P0] Add live API tools to support_triage template #20

Description

@mishrapravin114

Type

Implementation — merge a PR with working code. Not investigation.

Goal

Wire support_triage to fetch tickets from a real HTTP API (env-gated), with mock fallback for dev/CI.

Files to create or change

examples/templates/support_triage/tools.py ← NEW
examples/templates/support_triage/.env.example ← NEW
examples/templates/support_triage/README.md ← UPDATE (run + staging steps)
examples/templates/support_triage/nodes/__init__.py ← UPDATE if nodes need tool calls

Implementation checklist

  • fetch_ticket(ticket_id: str) — mock when SUPPORT_USE_LIVE unset; else GET $SUPPORT_API_URL/tickets/{id} with SUPPORT_API_TOKEN
  • save_draft_reply(ticket_id, body) — log-only unless SUPPORT_API_WRITE=1
  • Use existing @tool decorator from engine.runner.tool_registry
  • ./engine validate examples/templates/support_triage passes
  • ./engine run examples/templates/support_triage --input '{"ticket_id":"1"}' works without live API (mock)

Done when

  • PR merged to main
  • README has copy-paste staging commands
  • No secrets committed (.env.example only)

Out of scope

  • Zendesk OAuth app setup
  • Engine Cloud / multi-tenant

Related (context only)

#15 integration playbook

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestphase-1Phase 1 — pilot / GTMpriority-p0P0 — critical path / do nowtype-agentVertical agent template

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions