Learn how to build a sophisticated real-time voice sales agent that can have natural conversations with potential customers. The resulting AI agent will be able to process audio input and generate spoken replies by drawing information directly from your company’s sales materials.
context/
directory. It reads your sales documents and formats them for the AI to reference during conversations.
For now, we will add a sample products.json
to the directory.
SalesAgent
class — your AI voice assistant powered by:
on_enter()
method so that the agent greets users as soon as they join the room, making the experience feel conversational from the start.
function_tool
so that we can call functions. Switching from agent to agent will be the result of a function call.
agent=SalesAgent()
as a part of our session.start
.