voice-post-call
What it does
This skill handles what happens after a voice call ends. It turns the transcript into a brain page, posts a summary to your messaging app, and archives the audio.
When to use it
- βWhen a voice session ends and you want its transcript saved to your brain.
- βWhen you want a short summary of a voice call sent to your messaging app.
- βWhen you want the audio of a call archived with a reference in your brain.
Skill link
https://github.com/garrytan/gbrain/blob/master/recipes/agent-voice/skills/voice-post-call/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βAfter my voice call ends, save the transcript to my brain and send me a short summary.β
5 new skills a week. 1 minute to read.
How it works
The pipeline records the call audio, transcribes it, and writes a brain page with the summary and a reference to the audio. The same process runs even if the call ended before the assistant logged it.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
voice-post-call β Post-session transcript + summary handling
Convention: see gbrain's
skills/conventions/quality.mdfor citation rules + back-link enforcement, andskills/_brain-filing-rules.mdfor the filing decision protocol. (These are not copied by the install; the relative paths resolve only if your host repo mirrors gbrain's skills layout.)
Iron Law
Every call gets processed, even on tool-call failure. The voice persona MAY log mid-session via an opted-in write tool, OR the call may end without that tool firing (model forgot, WebRTC dropped, browser crashed). A call-end handler should post a structured signal regardless so the brain still gets the transcript + audio reference β see "Two firing paths" below for which of these ships today and which the operator implements.
If both paths fire (the tool call AND the call-end handler), the second one is idempotent β it sees the brain page already exists and updates instead of duplicating.
The pipeline
1. CAPTURE β MediaRecorder on the host repo's voice-agent service captures
the full call audio (webm/opus) to /tmp/calls/<ts>-<persona>.webm.
The browser client at /call?test=1 also captures via WebAudio-tee
for E2E asserts; production /call uses server-side capture only.
2. TRANSCRIBE β Whisper (via gbrain transcription) processes the audio. Output:
full transcript (timestamped) + speaker labels where possible.
3. SUMMARIZE β A separate LLM call produces a 3-5 sentence summary covering
key topics, decisions, and unresolved items.
4. WRITE β Create or update meetings/YYYY-MM-DD-call-<persona>.md with:
- frontmatter (date, persona, duration, ratings)
- full transcript in a "Transcript" block-quote section
- summary in a "Summary" section
- audio link (file://, or signed URL if uploaded to storage)
- any entity cross-links (people, companies mentioned)
5. CROSS-LINK β For each entity in the transcript (person, company), append a
timeline entry to people/<slug>.md or companies/<slug>.md pointing
back to this call page. Iron Law: per conventions/quality.md.
6. POST β Send the summary to the operator's messaging surface (Telegram,
Slack, Discord β whichever is wired in $TARGET_REPO/.env).
Two firing paths (both operator-wired today)
Path A β Persona-initiated mid-call (opt-in):
The voice persona calls log_to_brain via the WebRTC data channel; the host-repo /tool endpoint dispatches through tools.mjs. log_to_brain is in OPTIONAL_OPS, not READ_ONLY_OPS, so this only works if the operator's tools-allowlist.local.json opts in (there is no log_call_summary tool β the override can only enable ops listed in OPTIONAL_OPS).
Path B β Call-end handler (not yet shipped):
The shipped server.mjs has no automatic call-end handler β nothing fires when the WebSocket / WebRTC connection closes. To get the safety-net behavior, implement a post-call handler in your host repo that reads the captured audio + transcript on connection close and runs the pipeline above. Until you do, Path A (opt-in) is the only firing path, and calls where the persona never logs are NOT processed.
Brain page format
---
type: meeting
subtype: voice-call
persona: venus
date: 2026-05-17
duration_sec: 124
caller: operator
rating: 7
issues: []
audio_url: "file:///tmp/calls/2026-05-17-1029-venus.webm"
created: 2026-05-17
---
# Voice call: 2026-05-17 with Venus
> Brief 3-5 sentence summary of what was discussed and any decisions made.
## Summary
[Agent-authored 3-5 sentence summary covering topics, decisions, action items.]
## Transcript
> [Verbatim per-turn transcript with speaker labels and timestamps. Pure quote
> β do not paraphrase. Block-quoted because the exact wording matters more
> than a cleaned-up version.]
π [Audio](file:///tmp/calls/2026-05-17-1029-venus.webm)
## Entities mentioned
- [Person](people/<slug>.md)
- [Company](companies/<slug>.md)
## Timeline
- **2026-05-17 10:29 PT** | voice call with Venus, 124s, rating 7 β [topic]
Citation format
[Source: voice call with <persona>, YYYY-MM-DD HH:MM PT]
Anti-patterns
- β Paraphrasing the transcript. The verbatim text IS the signal; the summary is the agent's interpretation.
- β Skipping the audio archive step. Every call has a recoverable audio file.
FAQ
What if the call dropped before logging?
The call-end handler still processes the call, so the transcript and audio reference are kept.
Could a call create duplicate pages?
No. If the page already exists, the process updates it instead of creating a copy.
Are the call contents treated as instructions?
No. The transcript is treated as data, and any instructions inside it are not carried out.
Details
Original description by the author
Post-call handling for a voice session β turn the transcript into a brain page, post the summary to the operator's messaging surface, archive the audio. The pipeline is the contract; the firing paths are operator-wired (see "Two firing paths" below for what ships today).
repo: garrytan/gbrain
Popularity
- GitHub stars
- 31k
- Ranking position
- #9321
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
gbrain
31kLets your agent search a shared company knowledge brain for facts about people, projects and decisions, and save durable notes to it.
brain-ingest-gate
31kChecks new content against an existing knowledge brain before it is added, to avoid duplicates and resolve named entities first.
brain-link-discipline
31kMakes sure your agent includes a working link to each brain page it reports, in the same message, so you can open it right away.
brain-ops
31kGives your agent the core routine for a knowledge brain: check existing context first, save explicit notes with their source, and link related pages.
Similar skills
knowledge-automation
394kHelps your agent set up a recurring job that brings new content into your Knowledge vault on a schedule, then checks that the job runs.
knowledge-source-ingest
394kHelps your agent keep a Knowledge vault current with new items from chat channels, feeds, or mailboxes, without re-adding what it already has.
benchmark
280kHelps your agent measure code speed and performance. It's useful for ensuring things are fast and finding slowness issues.