GuidesReceivers

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.data becomes a turn. transcript.partial_data is interim and is ignored, as is every other event. Recall gets a 204 either way.
  • The participant's id is the turn's speaker and their name the speaker's name.
  • The turn's id is the participant's id and its start in milliseconds (<id>:<ms>), which is what a moment's turn_ids hold.
  • The turn starts at its first word's start_timestamp.relative and ends at its last word's end_timestamp.relative: seconds since the recording started.
  • A retried event replaces its turn, so a repeat never adds a second one.

Responses

StatusMeaning
204Accepted, or ignored.
401The signature is missing or wrong, it was made more than 5 minutes ago, or the URL's token names no conversation.
413The body is larger than 1 MB.
429More 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.

On this page