Skip to content

Built for products that act during the call.

Sparkle is the event layer between conversations and the apps and agents that act on them.

Ten things you can build on it today, and three ideas we think someone should. Each one lists the moments that fire, what your app does when they arrive and why their timing matters, then the four steps to set it up: the source, the moments, the call that connects them and the webhook handler.

The TypeScript samples use @sparkle/sdk, which is in private beta; the cURL tabs call the HTTP API directly. Helpers such as createCrmTask stand in for your own code.

01 Who builds it: Sales copilot and revenue-intelligence products

Sales copilots

Battlecards and follow-ups while the rep is still on the call.

What you're building
A sidebar that coaches reps during live sales calls.
Why now
The rep gets one chance to answer an objection. Coaching that shows up after the call has nothing left to change.
How it's done today
Send the transcript to an LLM every few turns, with a prompt per signal, then deduplicate whatever comes back.
What's missing
Timing. Polling fires on half a sentence, sends the same objection three times, and still lags the call.

With Sparkle

  • Pricing objection (custom moment pricing_objection) act · 5 s quiet · ready-made

    Your app: Show the pricing battlecard in the rep's sidebar.

    when The customer pushes back on price: says it costs too much or is over budget, asks for a discount, or compares a cheaper option.

    Why the timing matters: Waits for the customer to finish, so the card answers the objection they settled on, once.

  • Competitor mentioned (custom moment competitor_mentioned) answer · 2 s quiet · ready-made

    Your app: Open that competitor's comparison card.

    when Someone names a competing product or vendor, or an alternative the customer uses instead.

    Why the timing matters: Goes after about 2 seconds of quiet, while the rep is still choosing what to say.

  • Action request act · at once · built-in

    Your app: Create the follow-up in the CRM, owned by whoever promised it.

    fires on New work asked for, or promised.

    Why the timing matters: A promise is complete when it's said, so it goes with no wait.

  • Next steps answer · 2 s quiet · built-in

    Your app: Prompt the rep with the close plan for the deal's stage.

    fires on Someone asks what happens next.

    Why the timing matters: Lands while the question still hangs, before anyone answers it.

Set it up

  1. Step 1: Pick the source

    Recall.ai connection · early access. One URL for every bot in your Recall.ai workspace. Each call becomes its own conversation, on Zoom, Google Meet or Microsoft Teams. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Ready-made: live as soon as it's enabledawait sparkle.moments.templates.enable("pricing_objection");await sparkle.moments.templates.enable("competitor_mentioned");// request.do and next_steps are built in: nothing to turn on
  3. Step 3: Create the connection

    Or under Sources → Connect in the dashboard. Give its receiver_url, shown once, to every bot as a real-time endpoint for transcript.data, and add it in Recall.ai's Webhooks dashboard for bot.call_ended, bot.done and bot.fatal, so each conversation ends with its call.

    curl https://api.sparkle.ai/public/v1/connections \  -H "X-API-Key: $SPARKLE_API_KEY" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{    "vendor": "recall",    "name": "Sales calls",    "environment": "live",    "moment_types": [      "pricing_objection",      "competitor_mentioned",      "request.do",      "next_steps"    ],    "credentials": { "verification_secret": "whsec_..." }  }'
  4. Step 4: Handle the webhook

    Subscribe this endpoint once under Webhooks in the dashboard, in the connection's environment, and verify with the subscription's secret.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle", async (c) => {  const secret = process.env.SPARKLE_WEBHOOK_SECRET!;  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, speaker, conversation_id } = event.data;  if (kind === "pricing_objection") await showBattlecard(conversation_id, "pricing", text);  if (kind === "competitor_mentioned") await showBattlecard(conversation_id, "competitor", text);  if (kind === "request.do") await createCrmTask({ owner: speaker.name, task: text, conversation_id });  if (kind === "next_steps") await showClosePlan(conversation_id);  return c.body(null, 204);});

02 Who builds it: Platforms that host AI phone agents for their own customers

Voice-agent platforms

Hand the call to a person the moment the caller needs one.

What you're building
Phone agents that know when to hand a call to a human, set up per customer.
Why now
A caller who asks for a person and doesn't get one hangs up, and your customer blames the agent.
How it's done today
Extra lines in each customer's agent prompt, such as “if the caller asks for a human, transfer”, tuned by hand and never measured.
What's missing
A signal outside the agent's prompt that each customer can define, test on its own calls and change without redeploying the agent.

With Sparkle

  • Escalation request (custom moment escalation_request) answer · 2 s quiet · custom

    Your app: Your agent runtime calls its transfer tool and hands the human the call so far.

    when The caller asks to speak to a person, a manager or someone else, or says they want to stop talking to the automated agent.

    Why the timing matters: Goes after about 2 seconds of quiet, 5 at most, while the caller is still waiting for a reply.

  • Frustration expressed (custom moment frustration_expressed) answer · 2 s quiet · ready-made

    Your app: Switch the agent to a shorter script and lower its bar for a handoff.

    when A speaker shows frustration or disappointment with the product, the service or the process.

    Why the timing matters: Arrives in time for the agent's next reply, not in the post-call report.

  • Callback requested (custom moment callback_requested) act · 5 s quiet · custom

    Your app: Book the callback in your customer's scheduler.

    when The caller asks to be called back, or names a day or time to be reached.

    Why the timing matters: Waits 5 seconds of quiet, so “Tuesday, no, Wednesday after three” arrives as the time the caller settled on.

Set it up

  1. Step 1: Pick the source

    Your own turns. Your pipeline already transcribes: post each final turn to the conversation, and have the agent worker follow its event stream. LiveKit and Pipecat plugins are not available yet. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Ready-made: live as soon as it's enabledawait sparkle.moments.templates.enable("frustration_expressed");// Your own: a draft at version 1 until you make it liveconst escalationRequest = await sparkle.moments.create({  name: "escalation_request",  when: "The caller asks to speak to a person, a manager or someone else, or says they want to stop talking to the automated agent.",  not_when: "The caller mentions a person or a manager without asking for one, or asks the agent a question it can answer.",  timing: "answer",});await sparkle.moments.update(escalationRequest.id, { status: "live" });const callbackRequested = await sparkle.moments.create({  name: "callback_requested",  when: "The caller asks to be called back, or names a day or time to be reached.",  not_when: "The agent offers a callback the caller doesn't take up, or the caller talks about a call that already happened.",  timing: "act",});await sparkle.moments.update(callbackRequested.id, { status: "live" });
  3. Step 3: Create the conversation

    Create it when the call starts, with the moments to detect and a webhook URL of your own. Post each final turn as it's said, and end the conversation when the call does.

    const { conversation, webhook } = await sparkle.conversations.create({  title: `Support call ${callId}`,  moment_types: ["escalation_request", "frustration_expressed", "callback_requested"],  webhook_url: `https://yourapp.com/hooks/sparkle/${callId}`,});// Shown only here: it verifies this conversation's deliveriesawait saveWebhookSecret(callId, webhook?.secret);// Each final turn from your speech-to-text, as it's saidawait sparkle.conversations.turns.send(conversation.id, [  {    id: "t_14",    final: true,    speaker: "caller",    name: "Caller",    channel: "remote",    start: 61.2,    end: 63.0,    text: "Honestly, I just want to talk to a person.",  },]);// When the call is overawait sparkle.conversations.end(conversation.id);
  4. Step 4: Handle the webhook

    Verify each delivery with the secret its conversation returned, then act on the kind. Or follow the conversation's event stream from the agent worker: the same events, in order. It needs the API key, so it runs on a server.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle/:callId", async (c) => {  const secret = await loadWebhookSecret(c.req.param("callId"));  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, conversation_id } = event.data;  if (kind === "escalation_request") await transferToHuman(conversation_id);  if (kind === "frustration_expressed") await setAgentScript(conversation_id, "short");  if (kind === "callback_requested") await bookCallback(conversation_id, text);  return c.body(null, 204);});

03 Who builds it: Agent-assist and QA products for contact centres and BPOs

Contact centres

Supervisor alerts, promise tracking and QA flags, by each brand's rules.

What you're building
Agent assist and quality review for teams that take calls for several brands.
Why now
A supervisor can listen to a few live calls at a time, and a call going wrong needs someone now, not at the weekly review.
How it's done today
Keyword lists on the live transcript, and analysts scoring a sample of recordings by hand.
What's missing
Keywords miss how people actually say it and fire on every mention. A promise the agent made and didn't keep surfaces when the customer calls back.

With Sparkle

  • Escalation request (custom moment escalation_request) answer · 2 s quiet · custom

    Your app: Alert the supervisor's wallboard with the line that set it off.

    when The caller asks to speak to a person, a manager or someone else, or says they want to stop talking to the automated agent.

    Why the timing matters: Reaches the supervisor within seconds, while the call can still be turned around.

  • Action request act · at once · built-in

    Your app: Open a follow-up for each promise the agent makes, and flag the call for review if it's still open when it's due.

    fires on New work asked for, or promised.

    Why the timing matters: Goes with no wait, so the follow-up exists before the caller hangs up.

  • Complaint (custom moment complaint) act · 5 s quiet · custom

    Your app: Add the call to that brand's QA queue, with the quote and its timestamp.

    when The customer complains about the product, a charge or how they were treated, and wants it put right.

    Why the timing matters: Waits for the complaint to land, so QA gets one settled moment, not every sentence of it.

Set it up

  1. Step 1: Pick the source

    Deepgram connection. One URL for every live stream from the phone platform. Each stream becomes a conversation, and its events go to your organization's webhook subscriptions. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Your own: a draft at version 1 until you make it liveconst escalationRequest = await sparkle.moments.create({  name: "escalation_request",  when: "The caller asks to speak to a person, a manager or someone else, or says they want to stop talking to the automated agent.",  not_when: "The caller mentions a person or a manager without asking for one, or asks the agent a question it can answer.",  timing: "answer",});await sparkle.moments.update(escalationRequest.id, { status: "live" });const complaint = await sparkle.moments.create({  name: "complaint",  when: "The customer complains about the product, a charge or how they were treated, and wants it put right.",  not_when: "A question about a charge or a policy asked without complaint, or a complaint about something the company doesn't handle.",  timing: "act",});await sparkle.moments.update(complaint.id, { status: "live" });// request.do is built in: nothing to turn on
  3. Step 3: Create the connection

    Or under Sources → Connect in the dashboard. Add its receiver_url, shown once, as each stream's callback, with diarize=true. Each stream becomes its own conversation.

    curl https://api.sparkle.ai/public/v1/connections \  -H "X-API-Key: $SPARKLE_API_KEY" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{    "vendor": "deepgram",    "name": "Support line",    "environment": "live",    "moment_types": ["escalation_request", "request.do", "complaint"]  }'
  4. Step 4: Handle the webhook

    Subscribe this endpoint once under Webhooks in the dashboard, in the connection's environment, and verify with the subscription's secret.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle", async (c) => {  const secret = process.env.SPARKLE_WEBHOOK_SECRET!;  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, at, conversation_id } = event.data;  if (kind === "escalation_request") await alertSupervisor(conversation_id, text);  if (kind === "request.do") await openFollowUp({ conversation_id, promise: text, at });  if (kind === "complaint") await addToQaQueue(conversation_id, { quote: text, at });  return c.body(null, 204);});

04 Who builds it: Recruiting and interview-intelligence products

Recruiting and interviews

Scorecard evidence and a private nudge while the interview is running.

What you're building
An interview copilot that keeps interviewers on structure and fills scorecards from evidence.
Why now
A question the hiring team's guidelines rule out can't be unasked, and a scorecard written from memory drifts from what the candidate said.
How it's done today
A recording and an AI summary after the interview, and an interviewer scrolling it for quotes to justify a score.
What's missing
A nudge during the interview, and evidence tied to the second it was said.

With Sparkle

  • Policy question (custom moment policy_question) answer · 2 s quiet · custom

    Your app: Show the interviewer a private nudge to steer back to the role. The candidate sees nothing.

    when The interviewer asks about something the hiring team's own guidelines tell interviewers not to ask, such as family plans or age.

    Why the timing matters: Lands within seconds, before the conversation moves on.

  • Competency example (custom moment competency_example) act · 5 s quiet · custom

    Your app: Attach the quote and its timestamp to the matching scorecard criterion.

    when The candidate describes a specific situation they handled: what they did and what came of it.

    Why the timing matters: Waits for the story to finish, so the evidence is the whole example, not its first sentence.

  • Question for someone answer · 2 s quiet · built-in

    Your app: Log the candidate's questions, so the recruiter can follow up on any left open.

    fires on A question to one person who is present.

    Why the timing matters: Goes while the question still hangs, so the interviewer sees it as they answer.

Set it up

  1. Step 1: Pick the source

    Recall.ai receiver · early access. Create the conversation when the interview is booked and give its receiver URL to the bot. For your own interview room, stream the browser's audio instead. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Your own: a draft at version 1 until you make it liveconst policyQuestion = await sparkle.moments.create({  name: "policy_question",  when: "The interviewer asks about something the hiring team's own guidelines tell interviewers not to ask, such as family plans or age.",  not_when: "The candidate brings the topic up themselves, or the interviewer asks about the role's hours, location or start date.",  timing: "answer",});await sparkle.moments.update(policyQuestion.id, { status: "live" });const competencyExample = await sparkle.moments.create({  name: "competency_example",  when: "The candidate describes a specific situation they handled: what they did and what came of it.",  not_when: "A general claim about their skills with no situation behind it, or a hypothetical about what they would do.",  timing: "act",});await sparkle.moments.update(competencyExample.id, { status: "live" });// question.directed is built in: nothing to turn on
  3. Step 3: Create the conversation

    Create it before the call with a Recall.ai receiver, and give the bot the receiver URL as its real-time endpoint for transcript.data. The receiver takes bots in Sparkle's Recall.ai workspace.

    const { conversation, webhook, receivers } = await sparkle.conversations.create({  title: `Interview ${callId}`,  moment_types: ["policy_question", "competency_example", "question.directed"],  receivers: ["recall"],  webhook_url: `https://yourapp.com/hooks/sparkle/${callId}`,});// Shown only here: it verifies this conversation's deliveriesawait saveWebhookSecret(callId, webhook?.secret);// The bot's real-time endpoint for transcript.dataconst receiverUrl = `https://api.sparkle.ai${receivers[0]?.path}`;await startRecallBot({ meetingUrl, realtimeEndpoint: receiverUrl });
  4. Step 4: Handle the webhook

    Verify each delivery with the secret its conversation returned, then act on the kind. Or follow the conversation's event stream from the server behind the interviewer's panel: the same events, in order. It needs the API key, so it runs on a server.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle/:callId", async (c) => {  const secret = await loadWebhookSecret(c.req.param("callId"));  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, speaker, at, conversation_id } = event.data;  if (kind === "policy_question") await showInterviewerNudge(conversation_id, text);  if (kind === "competency_example") await attachEvidence(conversation_id, { quote: text, at });  if (kind === "question.directed") await logQuestion(conversation_id, { asker: speaker.name, text });  return c.body(null, 204);});

05 Who builds it: Customer-success and account-management platforms

Customer success

Churn risk, expansion signals and renewal commitments from every customer call.

What you're building
Account health that reflects what customers actually say on calls.
Why now
A risk raised on a call and forgotten by the next review is a renewal you learn about too late.
How it's done today
CSMs type notes into the CRM after each call, when they remember to.
What's missing
Notes are partial and late, and the signal sits in a recording nobody listens to again.

With Sparkle

  • Churn signal (custom moment churn_signal) act · 5 s quiet · custom

    Your app: Raise the account's risk flag and alert its CSM.

    when The customer says they are considering leaving, cutting seats or evaluating another vendor, or that the product isn't worth what they pay.

    Why the timing matters: One settled moment per exchange, so a long complaint doesn't page the CSM five times.

  • Expansion signal (custom moment expansion_signal) act · 5 s quiet · custom

    Your app: Open an expansion opportunity for the account owner.

    when The customer mentions new teams, use cases or headcount that could use the product, or asks about a higher plan.

    Why the timing matters: Waits for the thought to finish, so the opportunity records the whole ask.

  • Commitment with date (custom moment commitment_with_date) act · 5 s quiet · ready-made

    Your app: Track the commitment against the renewal, with its date.

    when Someone commits to doing something by a specific day, date or time.

    Why the timing matters: Settles “Friday, well, Monday” into the date that was agreed.

Set it up

  1. Step 1: Pick the source

    Connect Zoom, or Recall.ai live. After the meeting: Connect Zoom imports each cloud-recorded meeting and gets the same moments on the call's own clock. To alert the CSM during the call, use a Recall.ai connection instead. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Ready-made: live as soon as it's enabledawait sparkle.moments.templates.enable("commitment_with_date");// Your own: a draft at version 1 until you make it liveconst churnSignal = await sparkle.moments.create({  name: "churn_signal",  when: "The customer says they are considering leaving, cutting seats or evaluating another vendor, or that the product isn't worth what they pay.",  not_when: "A complaint about one feature with no sign they would leave, or a question about the renewal date or the contract.",  timing: "act",});await sparkle.moments.update(churnSignal.id, { status: "live" });const expansionSignal = await sparkle.moments.create({  name: "expansion_signal",  when: "The customer mentions new teams, use cases or headcount that could use the product, or asks about a higher plan.",  not_when: "Growth in the customer's own business with no link to the product, or a question about the plan they already have.",  timing: "act",});await sparkle.moments.update(expansionSignal.id, { status: "live" });
  3. Step 3: Connect Zoom

    Under Sources in the dashboard, choose Connect Zoom, pick live, then sign in with Zoom and allow. Each cloud-recorded meeting arrives as a conversation a few minutes after Zoom finishes its transcript. Zoom needs a paid plan with cloud recording and audio transcripts on.

  4. Step 4: Handle the webhook

    Subscribe this endpoint once under Webhooks in the dashboard, in the connection's environment, and verify with the subscription's secret. The handler acts on the kinds it names and ignores any other.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle", async (c) => {  const secret = process.env.SPARKLE_WEBHOOK_SECRET!;  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, speaker, conversation_id } = event.data;  if (kind === "churn_signal") await raiseRiskFlag(conversation_id, text);  if (kind === "expansion_signal") await openExpansionOpportunity(conversation_id, text);  if (kind === "commitment_with_date") await trackCommitment({ conversation_id, owner: speaker.name, text });  return c.body(null, 204);});

06 Who builds it: AI note-takers and meeting assistants

Meeting assistants

Decisions and action items as they happen, and a follow-up drafted before the call ends.

What you're building
A note-taker whose notes are useful during the meeting, not only after it.
Why now
Meeting tools and transcription APIs already bundle a summary after the call. Your product needs something theirs doesn't do.
How it's done today
Summarise the whole transcript once the meeting ends.
What's missing
Nothing reaches the user while the meeting is still running, and a summary can't say when a decision was made, or who took on what.

With Sparkle

  • Decision act · 5 s quiet · built-in

    Your app: Pin the decision to the live notes, with who said it.

    fires on The room settles how to proceed.

    Why the timing matters: Waits 5 seconds of quiet, so you pin the conclusion, not the first proposal.

  • Action request act · at once · built-in

    Your app: Add an action item, owned by the speaker who took it on.

    fires on New work asked for, or promised.

    Why the timing matters: Goes with no wait: the item is on screen as it's agreed.

  • Next meeting scheduled (custom moment next_meeting_scheduled) act · 5 s quiet · ready-made

    Your app: Draft the invite and the follow-up email, with the decisions so far, for the user to send.

    when The people talking agree on when they'll meet next.

    Why the timing matters: Waits for the date to settle, so the draft has the day they agreed on.

Set it up

  1. Step 1: Pick the source

    Audio from the browser. recordAudio in @sparkle/sdk/browser streams the microphone and the meeting tab; Sparkle transcribes it and keeps only the turns. The SDK is in private beta. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Ready-made: live as soon as it's enabledawait sparkle.moments.templates.enable("next_meeting_scheduled");// decision and request.do are built in: nothing to turn on
  3. Step 3: Create the conversation

    Your server creates it and mints each audio session; the page records with recordAudio and never holds the API key. Tab audio needs desktop Chrome or Edge.

    const { conversation, webhook } = await sparkle.conversations.create({  title: `Meeting ${callId}`,  moment_types: ["decision", "request.do", "next_meeting_scheduled"],  webhook_url: `https://yourapp.com/hooks/sparkle/${callId}`,});// Shown only here: it verifies this conversation's deliveriesawait saveWebhookSecret(callId, webhook?.secret);// The route the page asks for each audio sessionapp.post("/api/sparkle/audio-session", async (c) => {  const { conversationId, ...params } = await c.req.json();  // Check here that the signed-in user may stream to conversationId  const { url } = await sparkle.conversations.audio.createSession(conversationId, params);  return c.json({ url });});// When the call is overawait sparkle.conversations.end(conversation.id);
  4. Step 4: Handle the webhook

    Verify each delivery with the secret its conversation returned, then act on the kind. Or follow the conversation's event stream from the server behind the live notes: the same events, in order. It needs the API key, so it runs on a server.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle/:callId", async (c) => {  const secret = await loadWebhookSecret(c.req.param("callId"));  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, speaker, conversation_id } = event.data;  if (kind === "decision") await pinDecision(conversation_id, { text, by: speaker.key });  if (kind === "request.do") await addActionItem(conversation_id, { owner: speaker.key, text });  if (kind === "next_meeting_scheduled") await draftFollowUp(conversation_id, text);  return c.body(null, 204);});

07 Who builds it: User-research and product-feedback tools

User research

Feature requests, pain points and pricing signals, tagged the same way on every interview.

What you're building
Research synthesis that starts from the interviews, not from a pile of notes.
Why now
Teams run more customer calls than a researcher can watch again, and synthesis is where the work piles up.
How it's done today
Researchers re-read transcripts and tag highlights by hand, or paste whole transcripts into a chat model.
What's missing
Consistent tags: a definition written once, tested on past interviews, and applied the same way to every call.

With Sparkle

  • Work item act · 5 s quiet · built-in

    Your app: Add the request to the feature board, linked to the line in the call.

    fires on A bug, a wish or a fix not yet captured.

    Why the timing matters: One item per exchange, even when the participant circles back to it.

  • Pain point (custom moment pain_point) act · 5 s quiet · custom

    Your app: Tag the passage for the synthesis board.

    when The participant describes a problem, a workaround or a cost they live with today, in their own words.

    Why the timing matters: Waits for the whole description before tagging it.

  • Willingness to pay (custom moment willingness_to_pay) act · 5 s quiet · custom

    Your app: Add it to the pricing research notes.

    when The participant says what they pay for a solution today, what they would pay, or whose budget it would come from.

    Why the timing matters: Settles a corrected figure into the one they ended on.

Set it up

  1. Step 1: Pick the source

    Webhook source, Connect Zoom or import. After the call: point your note-taker's webhook, or a Zapier or Make step, at one Sparkle URL, connect Zoom, or import past interviews to start with. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Your own: a draft at version 1 until you make it liveconst painPoint = await sparkle.moments.create({  name: "pain_point",  when: "The participant describes a problem, a workaround or a cost they live with today, in their own words.",  not_when: "A passing gripe with nothing at stake, or a problem the interviewer describes rather than the participant.",  timing: "act",});await sparkle.moments.update(painPoint.id, { status: "live" });const willingnessToPay = await sparkle.moments.create({  name: "willingness_to_pay",  when: "The participant says what they pay for a solution today, what they would pay, or whose budget it would come from.",  not_when: "The interviewer states a price, or the participant asks what something costs without saying what they would pay.",  timing: "act",});await sparkle.moments.update(willingnessToPay.id, { status: "live" });// work_item is built in: nothing to turn on
  3. Step 3: Create the connection

    Or under Sources → Webhook (any tool) in the dashboard. Have the note-taker, or a Zapier or Make step, POST each finished transcript to its receiver_url, shown once, with a Sparkle-Call-Id header so a rerun imports nothing twice.

    curl https://api.sparkle.ai/public/v1/connections \  -H "X-API-Key: $SPARKLE_API_KEY" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{    "vendor": "webhook",    "name": "Research interviews",    "environment": "live",    "moment_types": ["work_item", "pain_point", "willingness_to_pay"],    "mode": "transcript"  }'
  4. Step 4: Handle the webhook

    Subscribe this endpoint once under Webhooks in the dashboard, in the connection's environment, and verify with the subscription's secret.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle", async (c) => {  const secret = process.env.SPARKLE_WEBHOOK_SECRET!;  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, at, conversation_id } = event.data;  if (kind === "work_item") await addToFeatureBoard({ conversation_id, request: text, at });  if (kind === "pain_point") await tagPassage(conversation_id, "pain point", { quote: text, at });  if (kind === "willingness_to_pay") await addPricingNote(conversation_id, text);  return c.body(null, 204);});

08 Who builds it: Software for advisers, brokers and insurance call teams

Financial advice and insurance

Point reviewers at the calls where a disclosure was discussed, or wasn't.

What you're building
Review tooling that helps a supervision team find the calls it needs to hear.
Why now
Firms are expected to supervise what advisers tell clients, and listening by hand only ever covers a sample.
How it's done today
A reviewer works through a sample of recordings with a checklist, days or weeks later.
What's missing
A pointer into every call: where a disclosure came up, where a return sounded promised, where the client gave an instruction.

With Sparkle

  • Risk disclosure (custom moment risk_disclosure) act · 5 s quiet · custom

    Your app: Mark the call as having the discussion. If the call ends without one, queue it for a reviewer.

    when The adviser explains the risks, fees or charges of a product, or says that returns are not guaranteed.

    Why the timing matters: Settles the explanation into one moment for the call record.

  • Performance promise (custom moment performance_promise) act · 5 s quiet · custom

    Your app: Put the line, its timestamp and the call in the review queue the same day.

    when The adviser states or implies that an investment will earn a specific or guaranteed return.

    Why the timing matters: One moment per exchange, so the reviewer reads the claim as it was finally put.

  • Action request act · at once · built-in

    Your app: Create a task for the adviser for each client instruction.

    fires on New work asked for, or promised.

    Why the timing matters: Goes with no wait, while the adviser is still on the line to confirm it.

Sparkle flags lines for people to review. It doesn't decide what's compliant, and it can miss a moment, so it supports a review process rather than replacing one.

Set it up

  1. Step 1: Pick the source

    Your own turns, or audio. Post turns from the call transcription you already run, or stream the call's audio over the audio streaming protocol and let Sparkle transcribe it. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Your own: a draft at version 1 until you make it liveconst riskDisclosure = await sparkle.moments.create({  name: "risk_disclosure",  when: "The adviser explains the risks, fees or charges of a product, or says that returns are not guaranteed.",  not_when: "The client asks about risks or fees and the adviser moves on without explaining them, or fees are named only as a total.",  timing: "act",});await sparkle.moments.update(riskDisclosure.id, { status: "live" });const performancePromise = await sparkle.moments.create({  name: "performance_promise",  when: "The adviser states or implies that an investment will earn a specific or guaranteed return.",  not_when: "Past performance described as history, or a projection given with its risks and without a guarantee.",  timing: "act",});await sparkle.moments.update(performancePromise.id, { status: "live" });// request.do is built in: nothing to turn on
  3. Step 3: Create the conversation

    Create it when the call starts, with the moments to detect and a webhook URL of your own. Post each final turn as it's said, and end the conversation when the call does.

    const { conversation, webhook } = await sparkle.conversations.create({  title: `Review call ${callId}`,  moment_types: ["risk_disclosure", "performance_promise", "request.do"],  webhook_url: `https://yourapp.com/hooks/sparkle/${callId}`,});// Shown only here: it verifies this conversation's deliveriesawait saveWebhookSecret(callId, webhook?.secret);// Each final turn from your speech-to-text, as it's saidawait sparkle.conversations.turns.send(conversation.id, [  {    id: "t_14",    final: true,    speaker: "adviser",    name: "Adviser",    channel: "remote",    start: 61.2,    end: 63.0,    text: "This fund will easily do twelve percent a year, guaranteed.",  },]);// When the call is overawait sparkle.conversations.end(conversation.id);
  4. Step 4: Handle the webhook

    Verify each delivery with the secret its conversation returned, then act on the kind.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle/:callId", async (c) => {  const secret = await loadWebhookSecret(c.req.param("callId"));  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, at, conversation_id } = event.data;  if (kind === "risk_disclosure") await markDisclosure(conversation_id, { quote: text, at });  if (kind === "performance_promise") await queueForReview(conversation_id, { quote: text, at });  if (kind === "request.do") await createAdviserTask(conversation_id, text);  return c.body(null, 204);});

09 Who builds it: CRMs and assistant apps for estate agents, brokers and field sales

Real estate and high-touch sales

Viewing requests, budgets and promises from the phone, straight into the CRM.

What you're building
A mobile assistant for agents who sell on the phone and in person, away from a desk.
Why now
Agents go from call to viewing all day, and whatever isn't written down between them is lost.
How it's done today
Notes typed into the CRM after the call, or voice memos transcribed later.
What's missing
Structured fields. A transcript doesn't fill in the budget or book the viewing.

With Sparkle

  • Viewing request (custom moment viewing_request) act · 5 s quiet · custom

    Your app: Offer viewing slots from the agent's calendar.

    when The client asks to see a property, or agrees on a time to view one.

    Why the timing matters: Waits for the day to settle before offering slots.

  • Budget stated (custom moment budget_stated) act · 5 s quiet · custom

    Your app: Fill in the budget on the client's record, for the agent to confirm.

    when The client names a price range, a maximum, or how they plan to pay or finance.

    Why the timing matters: Settles “around six hundred, well, six fifty at most” into the figure they ended on.

  • Action request act · at once · built-in

    Your app: Add a task for what the agent promised: listings, a brochure, a callback.

    fires on New work asked for, or promised.

    Why the timing matters: Goes with no wait, so the task is there when the agent hangs up.

Set it up

  1. Step 1: Pick the source

    Audio from a mobile app. The app streams the call over the audio streaming protocol; Sparkle transcribes it and keeps only the turns. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Your own: a draft at version 1 until you make it liveconst viewingRequest = await sparkle.moments.create({  name: "viewing_request",  when: "The client asks to see a property, or agrees on a time to view one.",  not_when: "The agent suggests a viewing the client doesn't take up, or a viewing that already happened is discussed.",  timing: "act",});await sparkle.moments.update(viewingRequest.id, { status: "live" });const budgetStated = await sparkle.moments.create({  name: "budget_stated",  when: "The client names a price range, a maximum, or how they plan to pay or finance.",  not_when: "The agent reads out a property's asking price, or the client asks what something costs.",  timing: "act",});await sparkle.moments.update(budgetStated.id, { status: "live" });// request.do is built in: nothing to turn on
  3. Step 3: Create the conversation

    Your server creates it and mints an audio session. Open the session's URL within 60 seconds, wait for ready, then send 16-bit PCM; mint a new session for every connection.

    const { conversation, webhook } = await sparkle.conversations.create({  title: `Client call ${callId}`,  moment_types: ["viewing_request", "budget_stated", "request.do"],  webhook_url: `https://yourapp.com/hooks/sparkle/${callId}`,});// Shown only here: it verifies this conversation's deliveriesawait saveWebhookSecret(callId, webhook?.secret);// One session per WebSocket; remote gives each voice on it its own speaker keyconst { url } = await sparkle.conversations.audio.createSession(conversation.id, {  source: "remote",  sample_rate: 16000,});// After the socket's stop message, when the call is overawait sparkle.conversations.end(conversation.id);
  4. Step 4: Handle the webhook

    Verify each delivery with the secret its conversation returned, then act on the kind.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle/:callId", async (c) => {  const secret = await loadWebhookSecret(c.req.param("callId"));  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, conversation_id } = event.data;  if (kind === "viewing_request") await offerViewingSlots(conversation_id, text);  if (kind === "budget_stated") await proposeBudget(conversation_id, text);  if (kind === "request.do") await addAgentTask(conversation_id, text);  return c.body(null, 204);});

10 Who builds it: Online tutoring and live-classroom platforms

Education and tutoring

A cue when the student is lost, and homework captured as it's set.

What you're building
A tutor-side panel for live online lessons.
Why now
A student who gets lost early in a lesson learns little from the rest of it.
How it's done today
Tutors read the room on their own, and lesson notes are written afterwards, if at all.
What's missing
A second pair of eyes: a quiet cue when the student says they're lost, and a record of what was set.

With Sparkle

  • Student confusion (custom moment student_confusion) answer · 2 s quiet · custom

    Your app: Show the tutor a cue and a simpler worked example from your own content.

    when The student says they don't understand or are lost, or asks for something to be explained again.

    Why the timing matters: Arrives while the tutor can still change course.

  • Knowledge gap answer · 2 s quiet · built-in

    Your app: Add the topic to the student's practice list.

    fires on A missing fact, or one stated with a hedge.

    Why the timing matters: Goes after about 2 seconds of quiet, in case the student answers it themselves.

  • Action request act · at once · built-in

    Your app: Add the homework to the student's plan, in the tutor's words.

    fires on New work asked for, or promised.

    Why the timing matters: Goes with no wait, as the homework is set.

Set it up

  1. Step 1: Pick the source

    Audio from the browser. Your lesson page streams the microphone and the call tab with recordAudio; Sparkle transcribes it. The SDK is in private beta. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Your own: a draft at version 1 until you make it liveconst studentConfusion = await sparkle.moments.create({  name: "student_confusion",  when: "The student says they don't understand or are lost, or asks for something to be explained again.",  not_when: "The student asks a new question out of interest, or says they understand and want to move on.",  timing: "answer",});await sparkle.moments.update(studentConfusion.id, { status: "live" });// knowledge_gap and request.do are built in: nothing to turn on
  3. Step 3: Create the conversation

    Your server creates it and mints each audio session; the page records with recordAudio and never holds the API key. Tab audio needs desktop Chrome or Edge.

    const { conversation, webhook } = await sparkle.conversations.create({  title: `Lesson ${callId}`,  moment_types: ["student_confusion", "knowledge_gap", "request.do"],  webhook_url: `https://yourapp.com/hooks/sparkle/${callId}`,});// Shown only here: it verifies this conversation's deliveriesawait saveWebhookSecret(callId, webhook?.secret);// The route the page asks for each audio sessionapp.post("/api/sparkle/audio-session", async (c) => {  const { conversationId, ...params } = await c.req.json();  // Check here that the signed-in user may stream to conversationId  const { url } = await sparkle.conversations.audio.createSession(conversationId, params);  return c.json({ url });});// When the call is overawait sparkle.conversations.end(conversation.id);
  4. Step 4: Handle the webhook

    Verify each delivery with the secret its conversation returned, then act on the kind. Or follow the conversation's event stream from the server behind the tutor's panel: the same events, in order. It needs the API key, so it runs on a server.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle/:callId", async (c) => {  const secret = await loadWebhookSecret(c.req.param("callId"));  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, conversation_id } = event.data;  if (kind === "student_confusion") await showTutorCue(conversation_id, text);  if (kind === "knowledge_gap") await addToPracticeList(conversation_id, text);  if (kind === "request.do") await addHomework(conversation_id, text);  return c.body(null, 204);});

Ideas you can build

Three products we think Sparkle makes possible, and haven't seen built. They use only what ships today: custom moments, webhooks, the event stream and the MCP server. If you're building one, we'd like to hear what works.

Idea Who builds it: Teams building AI agents and automations

Talk-triggered agents

Use what people say on a call as the trigger for an agent run.

What you're building
If you're building agents that do work for a team: much of that work is assigned out loud, in meetings.
Why now
Agents can already do the task. The request just never reaches them.
How it's done today
Someone pastes the meeting notes into a chat with the agent after the call.
What's missing
A trigger: a typed event with the request, the speaker and the call it came from.

With Sparkle

  • Action request act · at once · built-in

    Your app: Start an agent run with the task as its prompt and the speaker as its owner.

    fires on New work asked for, or promised.

    Why the timing matters: Goes with no wait, so the run starts while the meeting is still on the topic.

  • Find request answer · 2 s quiet · built-in

    Your app: Your agent finds the document and posts the link in the meeting chat.

    fires on A request to pull up something that exists.

    Why the timing matters: Goes after about 2 seconds of quiet, while the link is still wanted.

  • Assistant assigned (custom moment assistant_assigned) act · 5 s quiet · custom

    Your app: Route the task to that agent rather than to a person.

    when Someone hands a task to the team's assistant by name, such as “ask the agent to draft it” or “let's have the bot check”.

    Why the timing matters: Waits for the request to be complete before the run starts.

Set it up

  1. Step 1: Pick the source

    Your own turns, plus the MCP server. Any source feeds the call; here, turns from your own transcription, and webhooks start the runs. Through Sparkle's MCP server, Claude can write and test the custom moments, and read a call's moments itself. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Your own: a draft at version 1 until you make it liveconst assistantAssigned = await sparkle.moments.create({  name: "assistant_assigned",  when: "Someone hands a task to the team's assistant by name, such as “ask the agent to draft it” or “let's have the bot check”.",  not_when: "Someone talks about the assistant or what it did without handing it a task, or assigns the task to a person.",  timing: "act",});await sparkle.moments.update(assistantAssigned.id, { status: "live" });// request.do and request.find are built in: nothing to turn on
  3. Step 3: Create the conversation

    Create it when the call starts, with the moments to detect and a webhook URL of your own. Post each final turn as it's said, and end the conversation when the call does.

    const { conversation, webhook } = await sparkle.conversations.create({  title: `Team meeting ${callId}`,  moment_types: ["request.do", "request.find", "assistant_assigned"],  webhook_url: `https://yourapp.com/hooks/sparkle/${callId}`,});// Shown only here: it verifies this conversation's deliveriesawait saveWebhookSecret(callId, webhook?.secret);// Each final turn from your speech-to-text, as it's saidawait sparkle.conversations.turns.send(conversation.id, [  {    id: "t_14",    final: true,    speaker: "engineering_lead",    name: "Engineering lead",    channel: "remote",    start: 61.2,    end: 63.0,    text: "Can someone draft the migration plan for the billing service by Thursday?",  },]);// When the call is overawait sparkle.conversations.end(conversation.id);
  4. Step 4: Handle the webhook

    Verify each delivery with the secret its conversation returned, then act on the kind.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle/:callId", async (c) => {  const secret = await loadWebhookSecret(c.req.param("callId"));  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, speaker, conversation_id } = event.data;  if (kind === "request.do") await startAgentRun({ prompt: text, owner: speaker.name, conversation_id });  if (kind === "request.find") await findAndPostLink(conversation_id, text);  if (kind === "assistant_assigned") await routeToAgent({ task: text, conversation_id });  return c.body(null, 204);});

Idea Who builds it: Banks, fintech and their contact-centre software

Fraud and scam interruption

Flag calls with the signs of a scam for a person to review, while the customer is on the line.

What you're building
If you're building fraud tooling for banks: some of the clearest signs of a scam are said out loud on the call.
Why now
In many scams the customer authorises the payment themselves, and once it's sent it is hard to get back.
How it's done today
Rules on the transaction, and agents trained to recognise a script.
What's missing
The conversation. Rules see the payment, not the caller saying they were told to keep it from the bank.

With Sparkle

  • Coached caller (custom moment coached_caller) answer · 2 s quiet · custom

    Your app: Show the agent a cue to ask open questions and offer to call back on a known number.

    when The caller appears to be coached by a third party: says they were told what to say, stops to check with someone, or reads answers out.

    Why the timing matters: Reaches the agent within seconds, while the caller is still on the line.

  • Pressure to pay (custom moment pressure_to_pay) answer · 2 s quiet · custom

    Your app: Flag the pending payment for the fraud team to review, under the bank's own rules.

    when The caller describes urgency, secrecy and a payment together: they must pay or move money quickly and keep it from the bank or their family.

    Why the timing matters: Goes while the payment can still be paused for review.

A flag for people to review, never an automatic decision. Sparkle can miss a scam or flag a genuine call.

Set it up

  1. Step 1: Pick the source

    Your own turns, or a Deepgram stream. Post turns from the contact centre's transcription, or point its Deepgram streams at a connection. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Your own: a draft at version 1 until you make it liveconst coachedCaller = await sparkle.moments.create({  name: "coached_caller",  when: "The caller appears to be coached by a third party: says they were told what to say, stops to check with someone, or reads answers out.",  not_when: "The caller reads out an account or reference number they were asked for, or checks a detail with someone about something other than a payment.",  timing: "answer",});await sparkle.moments.update(coachedCaller.id, { status: "live" });const pressureToPay = await sparkle.moments.create({  name: "pressure_to_pay",  when: "The caller describes urgency, secrecy and a payment together: they must pay or move money quickly and keep it from the bank or their family.",  not_when: "An urgent payment the caller explains in their own words with no secrecy, or a caller asking how long a transfer takes.",  timing: "answer",});await sparkle.moments.update(pressureToPay.id, { status: "live" });
  3. Step 3: Create the conversation

    Create it when the call starts, with the moments to detect and a webhook URL of your own. Post each final turn as it's said, and end the conversation when the call does.

    const { conversation, webhook } = await sparkle.conversations.create({  title: `Payments call ${callId}`,  moment_types: ["coached_caller", "pressure_to_pay"],  webhook_url: `https://yourapp.com/hooks/sparkle/${callId}`,});// Shown only here: it verifies this conversation's deliveriesawait saveWebhookSecret(callId, webhook?.secret);// Each final turn from your speech-to-text, as it's saidawait sparkle.conversations.turns.send(conversation.id, [  {    id: "t_14",    final: true,    speaker: "caller",    name: "Caller",    channel: "remote",    start: 61.2,    end: 63.0,    text: "They said I have to move it today and not tell the bank why.",  },]);// When the call is overawait sparkle.conversations.end(conversation.id);
  4. Step 4: Handle the webhook

    Verify each delivery with the secret its conversation returned, then act on the kind.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle/:callId", async (c) => {  const secret = await loadWebhookSecret(c.req.param("callId"));  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, at, conversation_id } = event.data;  if (kind === "coached_caller") await showAgentCue(conversation_id, "coached-caller");  if (kind === "pressure_to_pay") await flagPaymentForReview(conversation_id, { quote: text, at });  return c.body(null, 204);});

Idea Who builds it: Podcast, live-streaming and webinar tools

Live clipping

Cut clips from a podcast, stream or webinar while the show is still on.

What you're building
If you're building clipping for live shows: a clip is worth most while the show is still running.
Why now
A clip posted during the show can bring people to it. The next morning it's a recap.
How it's done today
An editor scrubs the recording after the show, or a model ranks the whole transcript afterwards.
What's missing
A cue during the show, with the second to cut from.

With Sparkle

  • Quotable moment (custom moment quotable_moment) ideas · 8 s quiet · custom

    Your app: Cut a clip ending at the line, and queue it for the producer.

    when A speaker says something short and self-contained that makes sense out of context: a punchline, a crisp summary, a surprising fact.

    Why the timing matters: Waits 8 seconds of quiet for the riff to finish, then 90 seconds before the next, so the queue doesn't flood.

  • Strong opinion (custom moment strong_opinion) ideas · 8 s quiet · custom

    Your app: Queue it as a short with the guest's name on it.

    when A guest takes a clear, strong position on something people disagree about.

    Why the timing matters: Shares the same 90-second spacing, so the show yields a few strong clips, not dozens.

Both are custom moments set live, so they run on the show itself, not on the recording afterwards.

Set it up

  1. Step 1: Pick the source

    Audio, or a Deepgram stream. Stream the show's audio over the audio streaming protocol, or send the Deepgram stream you already caption with. Read the guide

  2. Step 2: Turn on the moments

    Custom moments belong to the organization, so this runs once; the Moments page in the dashboard does the same. A conversation detects one only once it's live.

    import { Sparkle } from "@sparkle/sdk";const sparkle = new Sparkle(); // reads SPARKLE_API_KEY// Your own: a draft at version 1 until you make it liveconst quotableMoment = await sparkle.moments.create({  name: "quotable_moment",  when: "A speaker says something short and self-contained that makes sense out of context: a punchline, a crisp summary, a surprising fact.",  not_when: "A line that only makes sense with what came before it, or a joke that depends on the room.",  timing: "ideas",});await sparkle.moments.update(quotableMoment.id, { status: "live" });const strongOpinion = await sparkle.moments.create({  name: "strong_opinion",  when: "A guest takes a clear, strong position on something people disagree about.",  not_when: "A guest restates a widely held view, or reports someone else's opinion.",  timing: "ideas",});await sparkle.moments.update(strongOpinion.id, { status: "live" });
  3. Step 3: Create the conversation

    Your server creates it and mints an audio session. Open the session's URL within 60 seconds, wait for ready, then send 16-bit PCM; mint a new session for every connection.

    const { conversation, webhook } = await sparkle.conversations.create({  title: `Live show ${callId}`,  moment_types: ["quotable_moment", "strong_opinion"],  webhook_url: `https://yourapp.com/hooks/sparkle/${callId}`,});// Shown only here: it verifies this conversation's deliveriesawait saveWebhookSecret(callId, webhook?.secret);// One session per WebSocket; remote gives each voice on it its own speaker keyconst { url } = await sparkle.conversations.audio.createSession(conversation.id, {  source: "remote",  sample_rate: 16000,});// After the socket's stop message, when the call is overawait sparkle.conversations.end(conversation.id);
  4. Step 4: Handle the webhook

    Verify each delivery with the secret its conversation returned, then act on the kind.

    import { Sparkle, SparkleSignatureError } from "@sparkle/sdk";app.post("/hooks/sparkle/:callId", async (c) => {  const secret = await loadWebhookSecret(c.req.param("callId"));  const event = await Sparkle.webhooks    .verify(await c.req.text(), c.req.raw.headers, secret)    .catch((error) => {      if (error instanceof SparkleSignatureError) return null;      throw error;    });  if (!event) return c.text("invalid signature", 400);  // Retries and replays repeat an event's id  if (event.type !== "moment.detected" || (await alreadyHandled(event.id))) {    return c.body(null, 204);  }  const { kind, text, speaker, at, conversation_id } = event.data;  if (kind === "quotable_moment") await queueClip({ conversation_id, endsAt: at, quote: text });  if (kind === "strong_opinion") await queueShort({ conversation_id, endsAt: at, speaker: speaker.key });  return c.body(null, 204);});

Build yours.

Every moment above without a built-in kind is a custom moment: write it in plain English, test it on your own calls, shadow it, then make it live. These are patterns and ideas, not customer stories.

Add to Claude opens Claude's custom-connector dialog with Sparkle's MCP server filled in; you confirm and sign in. Then ask Claude to write a custom moment for your calls and test it on one.