Skip to main content
In this guide, you’ll learn how to use LLM Gateway to ask questions and get answers about your audio transcripts.
If you want a Quickstart, see Apply LLM Gateway to Audio Transcripts.

Basic Q&A example

To ask a question about your audio transcript, define a prompt with your questions, reference the transcript text with a {{ transcript }} tag, and pass the transcript ID alongside the prompt to the chat completions API.
Only the first occurrence of {{ transcript }} in the first message that contains it is substituted — additional tags or tags in later messages are left as-is. The tag must be exactly {{ transcript }} (with the spaces); variants like {{transcript}} or {{ TRANSCRIPT }} are not substituted. The endpoint returns 404 if the transcript ID does not exist or belongs to a different account.

Example output

Structured Q&A with LLM Gateway

You can achieve structured question-and-answer outputs by crafting specific prompts that guide the LLM to format responses in a consistent way. Here’s how to create structured Q&A responses using LLM Gateway:

Advanced Q&A with LLM Gateway

For more sophisticated question-answering scenarios, you can create detailed prompts that guide the LLM to produce highly structured and context-aware responses using LLM Gateway’s flexible chat completions API.

More Q&A prompt examples

Try any of these prompts to get started: For more examples and techniques, experiment with different prompt structures and try various LLM models available through LLM Gateway.

API reference

Improve the results

To improve your Q&A results with LLM Gateway:
  • Experiment with different models: Try Claude, GPT, or Gemini models to find the best fit for your use case
  • Refine your prompts: Use clear, specific instructions and examples to guide the model’s responses
  • Add context: Provide relevant background information to help the model understand the domain
  • Structure your questions: Use consistent formatting to get more predictable outputs