Skip to content

Instantly share code, notes, and snippets.

@renezander030
Last active June 12, 2026 15:39
Show Gist options
  • Select an option

  • Save renezander030/3725d3231a18e7121b7ba9773f68736c to your computer and use it in GitHub Desktop.

Select an option

Save renezander030/3725d3231a18e7121b7ba9773f68736c to your computer and use it in GitHub Desktop.
Full YAML config for an AI automation pipeline — models, budgets, timeouts, HITL approval gates, and cron schedules.
# AI Pipeline Engine Configuration
# Supports multiple LLM providers, budget caps, HITL approval gates,
# and cron-scheduled pipelines.
operator:
channel: telegram # or slack, discord
security:
max_input_length: 500
rate_limit: 10 # messages/min/user
strip_markdown: true # prevent prompt injection via formatting
provider:
type: openai_compatible # works with any OpenAI-compatible API
api_key_env: LLM_API_KEY
base_url: https://api.your-provider.com/v1
models:
fast:
model: gpt-4o-mini
max_tokens: 1024
cost_per_1k_input: 0.00015
cost_per_1k_output: 0.0006
quality:
model: claude-sonnet-4-20250514
max_tokens: 2048
cost_per_1k_input: 0.003
cost_per_1k_output: 0.015
# Map roles to models — swap models without changing pipelines
roles:
classifier: fast
drafter: quality
# Token budget guardrails
budgets:
per_step_tokens: 2048
per_pipeline_tokens: 10000
per_day_tokens: 100000
timeouts:
ai_call: 30s
operator_approval: 4h
pipeline_total: 5m
pipelines:
- name: lead-screener
schedule: manual # or "30m", "1h", "daily"
steps:
- name: fetch-input
type: deterministic
action: fetch_leads
- name: classify
type: ai
skill: classify-lead
vars:
profile: "TypeScript, Go, cloud infra. $60/hr min."
- name: human-review
type: approval
mode: hitl # human-in-the-loop
channel: telegram
- name: log-result
type: deterministic
action: log
- name: email-digest
schedule: 30m
steps:
- name: fetch-emails
type: deterministic
action: fetch_unread
- name: summarize
type: ai
skill: email-digest
- name: report
type: deterministic
action: notify
# ────────────────────────────────────────────────────────────
# Full implementation: https://github.com/renezander030/draftcat (Go, MIT)
# Production pipeline engine with Gmail / GoHighLevel connectors,
# PDF cite-verification, and Telegram / Slack approval gates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment