AI AGENTS

Nightly batch: convert the day's resolved tickets into a callback voicemail run

On a schedule, reads all of the day's resolved support threads from Postgres, generates one spoken follow-up script per customer with ElevenLabs.

CategoryAI Agents
Enginesim
Difficultyintermediate
Triggerschedule
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNightly schedule after end of business
  • ActionQuery Postgres for tickets resolved in last 24hPostgreSQLPostgres
  • LogicDedupe by customer, drop callback opt-outs
  • ActionAgent drafts one follow-up script per customer
  • ActionBatch-render scripts to audioElevenLabsElevenLabs
  • OutputWrite deduped voicemail batch into callback queuePostgreSQLPostgres

What it does

Runs once a night to sweep every conversation resolved that day, produce a personalized callback voicemail for each unique customer, and stage the whole batch for the morning calling shift — one customer, one voicemail, no duplicates.

When to use it

For higher-volume teams who prefer a single predictable nightly run over per-ticket triggers. It gives the calling team a clean, ready-to-dial list each morning with audio already rendered.

How it works

  1. 1A schedule fires after end of business.
  2. 2The flow queries Postgres for conversations resolved in the last 24 hours.
  3. 3A logic step dedupes by customer and drops opt-outs, keeping the most recent thread per person.
  4. 4For each, the agent writes a concise spoken follow-up script.
  5. 5ElevenLabs renders each script to audio in batch.
  6. 6The voicemails are written into the callback_queue table dated for the next morning, forming the day's run.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect PostgresAny Postgres URL — query, write, migrate.
  2. 2
    Connect ElevenLabsText-to-speech, voice cloning.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.