Get Started
Quickstart
This quickstart helps you integrate your voice agent application with Elixir. You can start tracing your LLM requests with audio snippets.
1
Install Elixir
2
Set up your project
You’ll need an Elixir API key to use the SDK and begin logging data.
- Create an Elixir account.
- Create a new project.
- Navigate to project settings and issue a new API key.
3
Set up your environment
.env
...
ELIXIR_API_KEY=<your-api-key>
4
Trace your agent conversation
- Call
Elixir.init()
to instrument calls to your LLM services.
(This uses an OpenTelemetry-compatible tracing standard. Asynchronous instrumentation ensures this will not add latency to your service.)
# import Elixir
from elixir import Elixir
# initialize globally
Elixir.init()
- Call
Elixir.track_conversation(call_id: str)
to track the current conversation and group LLM traces within. You’ll need to provide a call id.
Examples:
5
Send audio to Elixir
After the call ends, use Elixir.upload_audio(conversation_id: str, audio_url: str)
to send call recording to Elixir. This can be used in one of two ways:
- Send a publicly accessible call recording URL.
- Upload the file directly (if recording link is not public).
Examples: