Concepts

Sources

The ways a transcript reaches Sparkle, and when to use each.

A source is how a conversation's transcript reaches Sparkle. Every source produces turns under the same turn contract, and the moments arrive the same way whichever one sent them.

You haveUse
Your own speech-to-text, or any transcript as it's spokenYour app sends turns.
A microphone or meeting tab in a web page, or raw audioAudio: Sparkle transcribes it.
Recall.ai bots or Deepgram streams that start outside your codeA connection: one URL, a conversation per call.
A Recall.ai bot or Deepgram stream your code startsA per-conversation receiver.
A finished recording's transcriptImport it with POST /conversations/import.
Zoom meetings with cloud recordingA Zoom connection: sign in with Zoom once.

Your app sends turns

Your code creates the conversation, then posts what people said to POST /conversations/{id}/turns, through the API or @sparkle/sdk. Use it when you already have text: your own speech-to-text, a vendor you read yourself, or a chat. You choose the speaker keys and turn ids, and you end the conversation when the call is over. See the turn contract.

Audio

Sparkle transcribes the audio for you, and stores only the turns.

Both need a conversation your code created, and bill transcription minutes.

Connections

A connection is one permanent receiver URL for a vendor, set up once for the organization. You give the URL to Recall.ai or Deepgram, and every call the vendor sends to it becomes a conversation of its own: Sparkle creates it on the call's first event, in the connection's environment, and tags its metadata with the connection and the vendor's id for the call.

A call's conversation ends when the vendor reports the end of the call. If that report never comes, it ends after 60 minutes without a turn, as any live conversation does.

Set one up in the guides for Recall.ai and Deepgram.

Per-conversation receivers

Your code creates the conversation with "receivers": ["recall"] or ["deepgram"], and the response holds a receiver path for that conversation alone. You give that URL to the bot or stream you start for the call. See the Recall.ai and Deepgram receivers.

Connection or per-conversation receiver?

Use a connection when calls start outside your code and you don't want to create conversations yourself. Use a per-conversation receiver when your code already creates the conversation and wants its id, its own webhook_url or its title up front.

ConnectionPer-conversation receiver
URLOne per connection, for every call.One per conversation.
ConversationCreated by Sparkle on the call's first event.Created by your code, before the call.
Title and metadataSet from the vendor: Recall.ai call 3f2a9c1e, the call's id in metadata.Yours.
EventsThe organization's webhook subscriptions.Subscriptions, and the conversation's own webhook_url.
EndsOn the vendor's end of the call, or after 60 minutes without a turn.When you end it, or after 60 minutes without a turn.
Recall.ai botsIn your own Recall.ai workspace, given its verification secret, or Sparkle's.In Sparkle's Recall.ai workspace only.

On this page