WebhookAdapter: prompt templates with dot-notation #816
Notifications
Due Date
No due date set.
Depends on
Reference: sam/archie#816
Reference in new issue
Block a user
Implement prompt template system with dot-notation variable interpolation ({pull_request.title}, {raw}) for building dynamic prompts from webhook payloads.
Notes
Partially done: internal/channels/webhook/webhook.go:243-264 extractText() does single-field dot-notation extraction (RouteConfig.Template = "issue.title"), not multi-variable interpolation. This issue wants a template string with multiple {field.path} placeholders plus a {raw} escape hatch -- extractText needs to become a real interpolation pass (parse placeholders, resolve each dot-path, substitute), not a single-path lookup. RouteConfig.Template's meaning would change from 'the one field to extract' to 'a template string' -- update its doc comment in the same change.
Close reason
Superseded: the WebhookAdapter design is replaced by event capture (t2db): captures, event types, mappings by example, bindings and CEL playbooks. Retry dedup filed as its own t2db bead.
Imported from beads
archie-core-1786637497271-284-573ca138· GitHub #305 · type task · priority P2 · created 2026-08-08 · closed 2026-10-05