Skip to main content

Overview

Tracing gives you full visibility into what happened during a test call or live call. It’s one of the most powerful features for making your voice agents production-ready. With traces, you can see:
  • The exact conversation that occurred
  • What prompts were sent to the LLM
  • Which tools the LLM had access to (and which it called)
  • Speech-to-text transcriptions of user input and Transcription errors
  • Tool call requests and responses

Accessing Traces

Open a call from the agent’s runs and select the Trace tab. It lists the call in order: user speech, agent replies, node transitions, tool calls and pipeline errors. Agent replies show their latency, and you can expand one to see the time spent in each stage. For prompt-level detail, connect your own Langfuse project (see Setting Up Langfuse Tracing). The Trace tab then shows Open external trace, which opens the full trace for that call in Langfuse.

Understanding Trace Sections

In a Langfuse trace, entries are organized by event type. The two most important sections to focus on are:

STT (Speech-to-Text)

These entries capture the transcription of what the user said during the call. Each STT entry shows the text conversion of the user’s speech at that point in the conversation. Example: STT: “Yeah, I would want to check what your operating hours are.”

LLM (Language Model Calls)

These entries show every call made to the LLM. Each LLM trace includes:
  • Prompt - The full prompt sent to the LLM (combination of global prompt + node-specific prompt)
  • Conversation history - The entire conversation up to that point
  • Available tools - All tools the LLM can access for that node
  • Response - What the LLM generated
LLM Response Conversation History

Tools in Traces

Each LLM call shows the tools available to the agent at that moment. These fall into three categories:

System Tools (Default)

Every node includes these by default:
  • Safe Calculator – Helps LLMs perform math accurately
  • Get Current Time – Retrieves current time
  • Convert Time – Converts time to a specific timezone

Pathway Tools

These correspond to the pathways (node transitions) you’ve configured. For example, if your node has pathways to “End Call” and “Move to Summary,” you’ll see those as available tools. The tool descriptions shown in traces match the descriptions you set in your pathway configuration.

Custom Tools

Any external tools you’ve attached to the node (e.g. any custom tools you created for API endpoints for booking, order submission, etc.) will appear here. See the custom tools documentation.

Tool Calls in Traces

When the LLM decides to call a tool, you’ll see:
  1. Tool call request – The tool name and parameters sent
  2. Tool response – The result returned (e.g., {"status": "ok"})
The tool call and response also appear in subsequent conversation history, so the LLM knows the outcome. Example flow: User: “Can you book me a table for tomorrow at 7pm?” LLM calls: book_table(date: “tomorrow”, time: “7pm”, party_size: 2) Tool response: {"status": "done", "confirmation": "Table booked"} Agent: “I’ve booked your table for tomorrow at 7pm.”

How Prompts Are Combined

The prompt sent to the LLM is a combination of:
  1. Global Prompt – Defined in your Global Node settings
  2. Node Prompt – Defined in the specific node being executed
If you disable the Global Node for a particular node, only the node-specific prompt will be used.

Key Concept: Conversation History

Every time an LLM call is made, the entire conversation history up to that point is passed to the LLM. This means:
  • The LLM always has full context
  • You can see exactly what context the LLM had when it made a decision
  • Useful for debugging unexpected responses

Setting Up Langfuse Tracing

Langfuse is an LLM observability platform. It stores and visualizes traces (prompts, responses, tool calls) so you can debug and iterate on LLM-powered applications outside of Bananaflow’s own trace viewer. You can send traces to your own Langfuse account. This enables you to use the playground feature of Langfuse. Setup steps:
  1. Sign up at Langfuse and create API credentials
  2. In Bananaflow, go to Settings, open the Telemetry tab, and enter your Langfuse host, public key, and secret key under Tracing
  3. Click Save
Once enabled, traces will be available for every completed call in Bananaflow.

Trace visibility

Traces sent to your own Langfuse project are private by default – opening a trace link requires access to that project. Make traces publicly viewable in the same Tracing section turns that off for your project only.
A public trace is readable by anyone holding its URL, with no Langfuse login, and it exposes the full call transcript, prompts, and tool payloads. Only enable it if you intend to share trace links outside your Langfuse project.

Quick Reference

Tips for Using Traces

  • Debug unexpected responses – Check the LLM trace to see what prompt and context the model received
  • Verify tool calls – Confirm tools are being triggered with correct parameters
  • Refine prompts – Use traces to see how your prompt instructions affect LLM behavior
  • Check transcription accuracy – Review STT entries if the agent misunderstands users