Commit Graph
7 Commits
Author SHA1 Message Date
Matthew Meszaros fd730805ae feat: record opt_out as the stored reply intent when a campaign reply's class is unsubscribe so a reply_intent branch never routes an opt-out as interest, and give the LLM fallback the whole reply when quote stripping leaves nothing so a reply written below the quote is still read 2026-11-05 16:25:11 +01:00
Matthew Meszaros 95e9541629 feat: classify campaign replies on the whole body so an opt-out past the 200-character preview is read, feed the LLM fallback the reply without quoted history capped at 4000 runes, and word the keyword fallback in the inbox tagging docs as applying only when no verdict is stored 2026-11-05 16:10:51 +01:00
Matthew Meszaros e0a1ce3a5d feat: read every reply's sentiment from the stored TypeSafe verdict ahead of keyword phrases, so campaign reply_class, the recorded reply intent (webhooks, timeline, CRM tasks, auto-pause) and the Slack inbox card agree, and count pricing or info requests as positive 2026-11-05 15:47:45 +01:00
Matthew Meszaros addb956ad6 feat: shared TypeSafe client under internal/pkg/typesafe with inbox tagging phases 2 and 3 (hold, stop, task, suppress behind workspace switches, reversible ones on by default), labels seeded at workspace creation and by the follow-up sweep, premade inbox views (hot leads, needs a reply, follow up, declined, automated), typed reply classification and a reply_intent branch condition, an inbox agent draft gate, Advisor copy judgment with a cached editor re-check, warmup content lint, bounce cause classification that keeps a blocked address sendable, and per-form submission triage 2026-09-19 23:33:37 -07:00
Matthew Meszaros e64b0b161d feat: sweep stale OPENAI_API_KEY/AI_LOCAL_MODEL mentions out of comments, the provider-not-configured and warmup-admin error strings, env.example, and the deployment guide now that AI_* is the only config surface 2026-07-16 06:39:07 +02:00
Matthew Meszaros a067bf5922 feat: AI action nodes in automations - ai_classify/ai_extract/ai_generate run one generation.Provider completion per node over the event data and merge the result back as a variable (ai_class, output_keys[], ai_text) so downstream conditions branch on it, charging 1 credit per node with a run_id+node_id idempotency key, refund on provider failure, out-of-credits fails only that node while the run continues, and a per-automation ai_credit_failures counter (migration 000064) auto-pauses a flow after 20 consecutive credit misses; classify/extract run deterministic (temperature 0), dry-run executes AI nodes for real and is charged but never touches the auto-pause lifecycle, provider + credit ledger wired into both backend and consumer integration services, plus the reply-classifier Layer 3 ported off its bespoke OpenAI client onto the platform provider via an injected ModelClassifyFunc (platform-paid, deterministic), a CompletionRequest.Temperature primitive threaded through the OpenAI and Anthropic providers, the flow builder palette/config panels/validation for the three AI steps, and a new AI-steps-in-automations guide 2026-07-14 05:30:55 +02:00
Matthew Meszaros 3117284095 feat: add layered reply classifier 2026-06-07 11:46:31 +02:00