Overview
Voiceflow integrates with New Relic so your team can investigate agent sessions alongside application logs and compare request latency across releases. Use a receiver your team hosts to forward signed conversation events, or instrument the backend behind your own Chat interface.
- Connect New Relic with server-held ingest credentials.
- Track conversations and calls and find their matching Voiceflow records.
- Monitor Chat requests when your team owns the interface backend.
- Build an operational view from the signals you collect.
Lifecycle events do not contain internal model/tool spans, token usage or quality scores. Use Transcripts and Evaluations for conversation evidence, and the shared CX guides for the additional measurements your team supplies.
Connecting New Relic
Authorize intake and configure signed event delivery.
You need a Voiceflow project, a New Relic account with log ingestion, plus permission to query its logs and save dashboards/alerts. A developer must host the HTTPS receiver and own its delivery health.
Studio
Prepare the destination
Ask your administrator for an ingest license key and the account’s region. Set NR_REGION to us, eu, jp or gov; the starter selects that region’s Log API. Keep the license key in NR_LICENSE_KEY on your server.
Ask your developer to deploy the operations starter with this project’s ID and the provider credentials. Obtain its HTTPS /voiceflow/events URL. If a receiver already handles this project, add forwarding there instead of replacing it.
Save the project webhook
Open your project at creator.voiceflow.com, then Settings → Webhooks → Session lifecycle webhook. Enter the receiver URL in Webhook url, move focus away and wait for Saved. Choose Listen for specific events, select Session started, Session ended and the two call events as needed, then wait for Saved again.
Complete the secret exchange
Copy Webhook secret from that endpoint and have the developer set VF_WEBHOOK_SECRET on the receiver. Keep it separate from the provider’s ingest credential. Ask them to start the service, then complete the real-conversation check.
Code
Provision intake access
Ask your administrator for an ingest license key and the account’s region. Set NR_REGION to us, eu, jp or gov; the starter selects that region’s Log API. Keep the license key in NR_LICENSE_KEY on your server.
Configure and run the receiver
Download and extract the operations starter. In operations, run npm ci with Node 22+, then npm test. Copy new-relic.env.example to an untracked provider.env file and replace every YOUR_ value:
Load the file into your local process (set -a; . ./provider.env; set +a) or use your host’s secret store. Expose /voiceflow/events through an HTTPS proxy that preserves the raw body and Svix headers. Apply ingress rate limits; the starter’s body limit is 64 KiB. The New Relic Log API receives a JSON object at the regional /log/v1 endpoint, with the license key in Api-Key. The starter puts event fields in attributes, which become queryable log attributes.
Register and verify the endpoint
In the project’s Settings → Webhooks → Session lifecycle webhook, save the HTTPS Webhook url and select the session/call events you need. Wait for Saved for both changes. Copy that endpoint’s Webhook secret to VF_WEBHOOK_SECRET, then start the receiver with npm start.
Keep existing webhook consumers in the shared receiver. A saved URL establishes configuration; the conversation check establishes delivery.
Events are not arriving
Check authorization, delivery and destination visibility.
Confirm the license key belongs to the selected account and that NR_REGION matches it. A user key cannot replace the license key. If intake succeeds but the query is empty, widen the time range and inspect log-drop rules and ingestion limits. The receiver returns 401 for a signature failure and 503 for forwarding failure. Verify the raw body and Svix headers before changing secrets; never bypass verification to make a test pass.
Tracking conversations and calls
Find lifecycle events and their matching Voiceflow conversations.
The receiver preserves event_id from the signed delivery and includes session_id/transcript_id when provided. It excludes conversation text, customer IDs, phone numbers and provider metadata.
Closing the widget does not immediately end its session. A call can reuse a session, and optional join IDs can be absent. Use the lifecycle reference for these distinctions; session/call duration is not response latency.
Studio
Run a deployed conversation
Use your published widget or another deployed channel. Ask a sandbox support question, then follow a path that ends the session or wait for its idle timeout. For voice, make a short test call and hang up.
Find the matching event
In New Relic, open a query view for the correct account and run this NRQL query. Inspect a returned Log row.
Match session_id with Voiceflow’s Transcripts, where present. Check a start/end pair and the separate call timing before sharing the dashboard.
Code
Exercise signed delivery
Use a deployed channel or the current Chat session API. Start a session, send a sandbox action and end it or allow its timeout. Legacy Interact requests are not a substitute for this session-lifecycle test.
Inspect the projected fields
In New Relic, open a query view for the correct account and run this NRQL query. Inspect a returned Log row.
Check event_id, event_time_ms, available IDs and duration_ms. The record is timestamped on receipt; original source time remains in event_time_ms. Event environmentID becomes version_id; projectEnvironmentID becomes environment_id when present.
Test rejection and recovery
In staging, send a modified signed body; expect 401 and no exported record. Force an intake failure; expect 503. Restore access and replay the original event using your delivery tooling. Verify the same event ID arrives, and monitor duplicate handling before using totals.
Counts differ from conversations
Allow for retries, session reuse and delayed delivery.
Use original event IDs when deduplicating lifecycle events. The starter has no durable queue; a lost acknowledgment can cause a replay. Your aggregation must account for repeated deliveries; raw record count can overstate conversation volume. Keep call events separate from session events and do not invent a join key when none was supplied.
Monitoring Chat requests
Measure the request boundary in your own application.
This path instruments non-streaming /v4/interact in a backend your team controls. It measures outbound request plus JSON response read, not widget rendering, streaming Voice or internal model/tool timing. An HTTP 200 does not establish that the customer’s task was resolved.
Studio
Assign the backend work
For an owned Chat interface, ask its developer to add observeChatTurn from the operations starter and forward the resulting record to this destination. Supply the environment/service labels and an approved sandbox question. Widget and phone users can continue with lifecycle events.
Verify the customer experience
Run the question through your interface. Ask the developer to locate voiceflow.chat.turn, confirm duration and HTTP status, and test a failed request. Verify the app keeps its normal response/error behavior when telemetry delivery is unavailable.
Code
Reuse authenticated session state
Your backend creates a Chat session, stores its sessionKey, launches once and authorizes later actions for the same customer. Use a random application conversation ID for telemetry; never use the session key as the ID.
Wrap and export the existing request
On a network/JSON-read error, the wrapper throws with error.record. Forward that record from the existing error handler and preserve its recovery behavior. Do not repeat the customer action to retry telemetry.
Check both boundaries
Verify successful and non-2xx requests, then make the monitoring destination unavailable. Preserve the actual runtime status/body. In production, move delivery into a durable queue or your host’s awaited background facility; the short example awaits an intake call with a five-second timeout.
Request latency looks too high
Check the boundary being measured.
duration_ms on voiceflow.chat.turn covers the server’s request and response read. It does not measure only model time. Keep it separate from lifecycle durations, and measure browser rendering or streaming first-response timing in their actual clients.
Building an operational view
Investigate collected signals and maintain the connection.
Build the first operational view
For conversation volume, use SELECT uniqueCount(event_id) FROM Log WHERE service = 'voiceflow-agent' AND environment = 'staging' AND event_type = 'runtime.session.end' SINCE 1 day ago TIMESERIES. Save the chart to your team’s dashboard. For custom Chat latency, use percentile(duration_ms, 95) with event_type = 'voiceflow.chat.turn' in a separate chart.
Verify notification behavior
Create a NRQL alert condition using the same scoped Log population. Set its aggregation window, threshold, loss-of-signal policy and notification workflow deliberately. Exercise a failed sandbox request and a healthy recovery before relying on it.
Use the shared guides for latency and errors, cross-system failures and CX regression alerts. Their measurement rules apply here; map the example fields and queries to this destination’s format. See the provider’s documentation for its query and dashboard controls.
Maintain the connection
Assign owners for receiver health, ingest credentials and alert routing. Rotate the provider credential in the host secret store and repeat a real conversation check before retiring the old value. Voiceflow’s signing-secret rotation keeps the previous secret valid for 24 hours.
Stop export cleanly
Preserve other webhook consumers and runtime behavior.
Disable New Relic forwarding in your receiver. Clear the project’s webhook URL only if no other consumer needs it. Remove the Chat instrumentation without changing session handling, revoke the unused provider credential and remove server secrets. Previously ingested records follow the provider’s retention policy; stopping export does not delete them.