Recall.ai
Send a Recall.ai meeting bot's live transcript to a conversation.
A Recall.ai bot can post its transcript to Sparkle as the meeting happens. Sparkle turns each finished utterance into a turn of your conversation.
Use this receiver when your code already creates the conversation and wants its id, its own
webhook_url or its title up front. When bots start outside your code, a
Recall.ai connection creates a conversation per bot for you.
Bots in Sparkle's workspace only
The receiver verifies Recall's signature with the verification secret of Sparkle's Recall.ai workspace, so bots must run in that workspace. For bots in your own Recall.ai workspace, use a connection, which keeps your workspace's secret.
Quickstart
Create a conversation with a Recall receiver
Create a conversation with "receivers": ["recall"]:
curl -X POST https://api.sparkle.ai/public/v1/conversations \
-H "X-API-Key: $SPARKLE_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"title": "Weekly sync", "receivers": ["recall"]}'The response's receivers list holds the receiver's path, shown only this once. Prefix it with the
API's origin to get the receiver URL:
https://api.sparkle.ai/public/v1/receivers/recall/<token>The token in the URL identifies the conversation. Keep the URL on your server like an API key.
Point the bot at the receiver URL
When you create the bot, set a transcript provider in recording_config.transcript and add the
receiver URL as a real-time webhook endpoint that subscribes to transcript.data:
{
"meeting_url": "https://meet.example.com/abc-defg-hij",
"recording_config": {
"realtime_endpoints": [
{
"type": "webhook",
"url": "https://api.sparkle.ai/public/v1/receivers/recall/<token>",
"events": ["transcript.data"]
}
]
}
}Receive moments
Each utterance becomes a turn, and the conversation's moments arrive as
moment.detected webhooks and on its event stream. Add "webhook_url" to the
create to receive them at a URL of this conversation's own.
How the receiver reads Recall's events
- Only
transcript.databecomes a turn.transcript.partial_datais interim and is ignored, as is every other event. Recall gets a204either way. - The participant's
idis the turn's speaker and theirnamethe speaker's name. - The turn's id is the participant's
idand its start in milliseconds (<id>:<ms>), which is what a moment'sturn_idshold. - The turn starts at its first word's
start_timestamp.relativeand ends at its last word'send_timestamp.relative: seconds since the recording started. - A retried event replaces its turn, so a repeat never adds a second one.
Responses
| Status | Meaning |
|---|---|
204 | Accepted, or ignored. |
401 | The signature is missing or wrong, it was made more than 5 minutes ago, or the URL's token names no conversation. |
413 | The body is larger than 1 MB. |
429 | More than 1,200 requests in a minute to one receiver URL. |
The receiver logs each request's event type, Recall's message and bot IDs, and its outcome. It doesn't log the transcript.