# Ask the event: cited answers for delegates

How to put an "Ask the event" box on your event website. A delegate types a question; Audiobly answers it from **that event's own sessions only** and cites its claims with numbered sources: the session, the speaker, the moment in the recording and the words that were said. If the sessions don't cover the question, the answer says so instead of guessing.

- **Base URL:** `https://api.audiobly.com` — all paths are under `/v1`.
- **Auth:** `Authorization: Bearer <API_KEY>` from **your site's server only**. `POST /v1/events/{EVENT_ID}/ask` takes the organisation's API key only, with the `read` scope (a signed-in Audiobly user gets `403 API_KEY_REQUIRED`); the three reads take any key or user with `read`.
- **Plan:** API keys come with the Enterprise plan, which includes every module, so asking and suggestions answer for any key.
- **Errors:** `{"error": {"code", "message", "request_id"}}` with an `X-Request-ID` header.
- **Related guides:** [Use Audiobly on your own website](/developers/guides/delegate-hub.md) (delegate accounts, session pages), [MCP server](/developers/mcp/full-guide.md) (transcript search), [Rate limits, quotas & plans](/developers/api/rate-limits.md).

`EVENT_ID` may be the full event id or the short id fragment your event URLs use. `SESSION_ID` and `ACCOUNT_ID` are UUIDs.

| Call | What it is for |
|---|---|
| `POST /v1/events/{EVENT_ID}/ask` | Answer one question (or find the matching transcript moments) |
| `GET /v1/events/{EVENT_ID}/ask/suggestions` | Up to four suggested questions for the box, optionally with their answers ready |
| `GET /v1/events/{EVENT_ID}/ask/recent` | "Recent questions from delegates", without names |
| `GET /v1/events/{EVENT_ID}/ask/citations` | How often each session was cited, for sponsor and organiser figures |

---

## 1. What answers are made from

Only the event's own content, never the web and never another event:

| Source | Citation `kind` | Which rows |
|---|---|---|
| What was said on stage | `transcript` | Session transcripts an editor has signed off (editorial status `reviewed` or `published`, the same rule as transcript search), cut into passages of about 60 to 90 seconds with their speaker and time. Session transcripts only: an event recorded as one stream without sessions has nothing to search (`no_content`) |
| Session summary and takeaways | `summary`, `takeaway` | The session's **approved** Session Report only (a draft has not had its editorial review) |
| Themes, opportunities, risks | `theme`, `opportunity`, `risk` | The latest completed analysis of each session (themes and opportunities from the approved Session Report when a session has no analysis) |
| Pull quotes | `quote` | Stored pull quotes, with the moment in the recording when the session's signed-off transcript contains the quote |

How a question is answered:

1. The question is matched against those passages by the words they share (rare words count more than common ones; a word said in most sessions, such as the event's own main topic, does not on its own make a passage relevant).
2. **Nothing relevant: no answer is written.** You get `refused_reason: "not_covered"` straight away.
3. Otherwise the best passages (up to 12, at most three per session) are numbered and one answer is written from them, citing each claim as `[n]`.
4. Every `[n]` is checked. A number that was not one of the passages is removed; the rest are renumbered `1, 2, 3…` in the order they first appear, and each has one entry in `citations`. At most `max_citations` sources are kept.
5. `citations[].text` is at most about 40 words; the answer is written to quote at most 25 words verbatim (2 to 5 short sentences). Transcripts can be asked about, not copied out.
6. `confidence` is **computed**, not the writer's opinion: `high` needs three or more sources from at least two sessions and no uncited sentence; `low` means no source, or an uncited sentence with a single source; otherwise `medium`.

The same question (ignoring case and punctuation), asked of the same sessions with the same `max_citations`, is answered once. It is then served from a cache for up to 30 days, or until the event's content changes (a session's title, start time or status, a new transcript version, analysis, approved report or pull quote). An `unavailable` answer is kept for about 10 minutes.

---

## 2. Ask a question

```bash
curl -s -X POST "https://api.audiobly.com/v1/events/$EVENT_ID/ask" \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{
    "question": "What did publishers say about licensing to the LLMs?",
    "as_of": "2026-06-09T17:30:00Z",
    "max_citations": 5,
    "delegate_account_id": "'$ACCOUNT_ID'"
  }'
```

| Field | Type | |
|---|---|---|
| `question` | string | Required. Up to 500 characters are answered (counted after extra spaces are removed); 501 to 4,000 get `refused_reason: "too_long"`; more than 4,000 is rejected with `422` |
| `session_ids` | array of UUID | Optional. Answer only from these sessions ("Ask about this session"). At most 200. `404 SESSION_NOT_FOUND` if one is not part of the event |
| `session_id` | UUID | Optional. One session, for a session page's ask box: the same as `session_ids: [id]` (added to `session_ids` when both are sent) |
| `show_in_recent` | boolean | Optional. `false` keeps this question out of recent questions (Section 5) whatever it is; `true` or left out: listed when it qualifies |
| `as_of` | ISO time | Optional. Only sessions that **started** before it are searched: "the days so far". Sessions without a start time are left out when it is set. A time without a zone is read as UTC |
| `max_citations` | 1–8 | Optional, default 5 |
| `delegate_account_id` | UUID | Optional. The signed-in delegate you ask for; must be an account of your organisation (`404 NOT_FOUND` otherwise) |
| `mode` | `answer` \| `moments` | Optional, default `answer`. See Section 3 |
| `include_moments` | boolean | Optional, default `false`. With `mode: "answer"`, also fill `moments` with up to five matching transcript moments (at most two per session, found without AI), for a "From the transcripts" panel beside the answer. Not filled for `too_long`, `off_topic` or `no_content` |

Response `200`:

```json
{
  "question_id": "8c0a…",
  "mode": "answer",
  "answer": "One publisher said its licensing deal now pays for the archive team [1]. Another said licensing only works if attribution comes with it, otherwise traffic disappears [2].",
  "citations": [
    {
      "n": 1,
      "session_id": "5b1e…",
      "session_title": "Licensing content to the LLMs",
      "speaker": "Jane Doe",
      "offset_sec": 20.0,
      "end_sec": 105.0,
      "timestamp_seconds": 20.0,
      "quote_id": null,
      "kind": "transcript",
      "text": "We signed a licensing deal with two model makers last spring, and the revenue now pays for our archive team."
    },
    {
      "n": 2,
      "session_id": "5b1e…",
      "session_title": "Licensing content to the LLMs",
      "speaker": "Raj Patel",
      "offset_sec": 50.0,
      "end_sec": null,
      "timestamp_seconds": 50.0,
      "quote_id": "3f9c2a7b51e0d4c8",
      "kind": "quote",
      "text": "Licensing only works if attribution comes with it",
      "verbatim": "Licensing only, you know, only works if attribution comes with it"
    }
  ],
  "uncited": false,
  "confidence": "medium",
  "refused_reason": null,
  "sessions_searched": 14,
  "moments": [],
  "other_moments": [],
  "related_topics": []
}
```

- `offset_sec` / `end_sec` are seconds into the session recording: link to the moment (for example `?t=20`). Both are `null` for analysis items that have no single moment. `timestamp_seconds` is the same value as `offset_sec`, under a second name.
- `quote_id` is set on `quote` citations: the quote's id in the event's Insights snapshot (*Event Insights* guide), for a link to its quote card. It depends only on the session and the quote's words, so it stays the same when the snapshot is rebuilt. It is `null` for other kinds. A quote that the Insights clean-up left out (not one complete thought, see *Event Insights*) has no quote card: `GET /v1/events/{event_id}/quotes/{quote_id}` answers 404, so link to the session moment (`timestamp_seconds`) instead.
- On `quote` citations, `text` is the pull quote cleaned newspaper-style (since 1.3.16, as on the *Event Insights* quote reads) and `verbatim` the words as extracted from the transcript; locate the moment with `verbatim`. A pull quote that is not one complete thought after cleaning is not used as a source. `verbatim` is `null` on other kinds.
- `uncited: true` means at least one sentence of six or more words carries no source marker (always `true` with `unavailable`). Show the answer, but you may want to say so.
- `sessions_searched` is how many sessions in scope had anything to search.

`refused_reason` is `null` for an answer, or:

| Value | Meaning | `answer` |
|---|---|---|
| `not_covered` | Nothing in the sessions answers it (decided before any writing when no passage matches, by the writer, or because the written answer kept no valid source) | "The sessions don't cover that, so there is nothing to quote rather than a guess. …" |
| `off_topic` | No searchable words, or not a question about the event | "Ask about what was said in the sessions of this event." |
| `too_long` | Over 500 characters | Asks for a shorter question |
| `no_content` | Nothing in scope can be searched yet (no signed-off transcript or analysis; or nothing started before `as_of`) | "Nothing from these sessions can be searched yet." |
| `unavailable` | The answer could not be written just now | A short note; `citations` holds the best-matching passages so the page still shows sources |

Every question that gets a `200` is stored with its answer and sources (`question_id`), and with `delegate_account_id` when you send it, for "recent questions" and the citation counts. When a delegate account is erased, its questions are kept but no longer linked to the account. The delegate's activity also gets an `ask.asked` row with the question id, its length, the number of citations, the mode and any `refused_reason`, never the text. Say so in your site's privacy notice.

Also good to know:

- Answers and suggestions are written in the event's output language. The fixed refusal texts are in English, and matching works best on questions in English.
- An unknown event id answers `404 NOT_FOUND`. A body that fails validation answers `422` with the field errors in `detail`.
- With `mode: "moments"`, `confidence` is `high` with three or more moments, `medium` with any, `low` with none, and the question does not appear in recent questions or citation counts.
- A transcript citation's `offset_sec` is the start of the best-matching line; `end_sec` is the end of the whole passage.

### Limits

| Limit | Value | Applies |
|---|---|---|
| Per delegate account | 30 questions a day (UTC) | When `delegate_account_id` is sent |
| Per organisation | 60 questions a minute | Always |

A `200` or `429` carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (seconds until the window resets). With `delegate_account_id` they describe the delegate's daily limit (across all your events; the UTC day); otherwise, or once the organisation's per-minute limit is reached, that limit. On this endpoint they replace the ordinary API-rate headers. Over a limit: `429 TOO_MANY_REQUESTS` with the same headers and `Retry-After`. Every accepted request counts, including refused questions, `404 SESSION_NOT_FOUND` and `429` answers. The ordinary API request rate (`429 RATE_LIMITED`, see [Rate limits, quotas & plans](/developers/api/rate-limits.md)) still applies on top.

---

## 3. "Ask about this session": transcript moments, no writing

`mode: "moments"` returns the moments in the transcripts that match the question, best first, and writes nothing. Use it for an "Ask about this session" box on a session page:

```bash
curl -s -X POST "https://api.audiobly.com/v1/events/$EVENT_ID/ask" \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"question": "How are publishers blocking bots?", "mode": "moments",
       "session_ids": ["'$SESSION_ID'"], "as_of": "2026-06-09T17:30:00Z"}'
```

```json
{
  "question_id": "1d2f…",
  "mode": "moments",
  "answer": null,
  "citations": [],
  "uncited": false,
  "confidence": "medium",
  "refused_reason": null,
  "sessions_searched": 1,
  "moments": [
    {
      "session_id": "5b1e…",
      "session_title": "Licensing content to the LLMs",
      "speaker": "Raj Patel",
      "offset_sec": 80.0,
      "end_sec": 105.0,
      "text": "Bots that ignore robots files get blocked at the edge."
    }
  ],
  "other_moments": [],
  "related_topics": []
}
```

- `moments`: up to `max_citations` moments in the scoped sessions (at most three per session), each one utterance with its speaker and time.
- `other_moments`: with `session_ids`, up to three moments from **other** sessions in scope (one per session): "what other sessions said about it".
- `related_topics`: when nothing matched, up to five topics these sessions did cover, from their analysis, so the page can offer them as next questions. `refused_reason` is then `not_covered`.

Moments mode counts towards the same limits. For keyword search across all your events, see `GET /v1/transcripts/search` (it takes `event_id` and `session_id`) in the [MCP server](/developers/mcp/full-guide.md) guide.

---

## 4. Suggested questions

```bash
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/ask/suggestions?as_of=2026-06-09T17:30:00Z" \
  -H "Authorization: Bearer $KEY"
```

```json
{
  "data": [
    "How are publishers licensing their archives?",
    "How was ROI measured?",
    "What did speakers say about Licensing as revenue?",
    "What did speakers say about Measuring ROI?"
  ],
  "answers": null
}
```

Up to four questions written from the event's own themes and takeaways, once per version of the event's content (and `as_of` scope), then kept. Each written question is checked to be answerable from the sessions. When the writer is unavailable, or fewer than four pass, the rest are made from the event's approved themes, or the sessions' most frequent analysis themes ("What did speakers say about …?"). `data` is empty when nothing can be searched yet.

`with_answers=true` adds each suggestion's answer, in the shape of Section 2 with `question_id: null`:

```json
{
  "data": ["How are publishers licensing their archives?", "…"],
  "answers": [
    {"question": "How are publishers licensing their archives?",
     "answer": {"question_id": null, "mode": "answer", "answer": "… [1]", "citations": [ … ], "uncited": false,
                "confidence": "medium", "refused_reason": null, "sessions_searched": 14,
                "moments": [], "other_moments": [], "related_topics": []}}
  ]
}
```

The first call for a new version of the content prepares the answers (allow up to a minute); after that they come from the cache, so a page can show them instantly. Call it once from your server after each day's sessions are published to warm it. Suggestion answers are not stored as delegates' questions and don't count towards the limits. A delegate's `POST …/ask` with the same question gets the cached answer when it uses the same `as_of` scope and the default `max_citations` (5).

---

## 5. Recent questions from delegates

```bash
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/ask/recent?limit=10" -H "Authorization: Bearer $KEY"
```

```json
{"data": [{"question": "Who is measuring the ROI of AI?", "asked_at": "2026-06-09T14:02:11Z"}]}
```

Newest first, `limit` 1–50 (default 10). Only questions that:

- got a cited answer (not refused, at least one source);
- are at most 140 characters;
- don't look like they contain personal data (an email address, a phone number or a link);
- are not a repeat of a newer one, ignoring case and punctuation.

Who asked is never returned.

---

## 6. Citation counts per session

```bash
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/ask/citations?since=2026-06-09T00:00:00Z" -H "Authorization: Bearer $KEY"
```

```json
{"data": [{"session_id": "5b1e…", "citations": 12}, {"session_id": "a7c3…", "citations": 4}]}
```

`citations` is the number of answered questions that cited the session (a question citing it twice counts once), most cited first. Optional `since` / `until` limit when the questions were asked. Counts only: never the questions or who asked. Use it for "Ask queries citing this session" on sponsor and organiser pages.

---

## 7. Putting it on your site

1. **Ask page.** On load, call `GET …/ask/suggestions?as_of=<now>` (or `with_answers=true` to show answers instantly) and `GET …/ask/recent`. When the delegate asks, call `POST …/ask` from your server with `as_of` set to now and `delegate_account_id` when they are signed in. Render `answer` with each `[n]` as a link to citation `n`; link each citation to the session page at `offset_sec`.
2. **Session page.** `POST …/ask` with `session_ids: [SESSION_ID]`: `mode: "answer"` for a written answer about the session, or `mode: "moments"` for the matching moments, what other sessions said, and related topics when nothing matched.
3. **Before the event.** With nothing signed off yet, `refused_reason` is `no_content` and suggestions are empty: say "Ask again once the first session has ended".
4. **Several editions.** Each edition is its own event: send the edition's `EVENT_ID`.

---

## 8. The other two question endpoints

Audiobly has two older question endpoints for **organisers** (not delegates). Neither cites sources the way Ask the event does.

### Insights AI: `POST /v1/events/{EVENT_ID}/insights/ask`

A question about one event's **insights**, for the organiser's own team. It reads the event's merged transcript analysis (topics, themes, entities, sentiment overall and per speaker, audience questions, opportunities, risks), not the transcripts themselves. Request `{"question": "…"}`; response:

```json
{"answer": "…", "evidence": ["Theme: '…'", "Opportunity: '…'"], "drivers": ["…"],
 "recommendation": "a next step for the organiser", "confidence": "high | medium | low"}
```

`evidence` is free text naming analysis items, with no session id or time; `confidence` is the writer's own judgement. Any key or user of the organisation; one answer is written per call (no cache), and it counts as an ordinary API request. When there is no analysis yet the answer says so with `confidence: "low"`.

### Portfolio AI: `POST /v1/intelligence/ask`

The same answer shape across **all your events**: it reads portfolio figures (health score, and per event registrations, tickets sold, check-ins, attendance rate, revenue), not what was said. Request `{"question": "…"}`. Included with Enterprise, like every module.

Use Ask the event for anything a delegate sees; use these two for organiser questions about insights and performance.
