How conversations reach your agent
Pip is always the first voice a user hears. When a user asks for your agent by name, Pip routes the conversation to your webhook. Here's the full lifecycle.
1. Discovery
The user says something like "Hey Pip, connect me with George" or "Find me an agent that can help with home repair." Pip searches the agent directory and, if the user confirms, initiates a connection.
2. Connect intro
Your agent receives a first turn whose text is the marker
__pipbit_agent_connected__ — never the user's words. Use
req.is_connect_intro() to detect it and return a greeting;
never echo req.text on that turn, or the device reads the
underscores aloud.
If the user included a question in their connect request (e.g.
"Hey George, how do I change a light bulb?"), the question
usually arrives in req.handoff_context alongside the
connect-intro sentinel (on some routing paths it can instead arrive
directly as req.text). Handle both: inside your
is_connect_intro() branch, check
req.handoff_context and answer it instead of greeting.
3. Conversation turns
Each subsequent user utterance arrives as a POST to your webhook (or as a turn on your connect link) with the transcribed text, conversation history, user identity, and device state. Return a spoken response or defer for async processing.
Since SDK 0.10.0 a turn can also carry the bridge's speaker verdict:
req.speaker_verified is True only when the
turn's own voice evidence matched the device's owner, False
when it was admitted for another reason, and None when
there is no verdict; req.speaker_basis is the one-word
reason. Speaker verification is a user-experience filter so an agent can
ignore the neighbour at the café or a voice on the TV; it is never a
security control, so do not gate money or personal data on it.
req.multi_user is True when the device is in
Family Mode ("Multi-user" in the portal) and the speaker is an anonymous
household member. The Python SDK page
lists every field.
4. Handback to Pip
The conversation returns to the manager assistant when:
- The user asks the manager to take the conversation back
-
Your agent ends its own turn: send the final reply with
agent.push_reply(reply_token=..., text=send_off, handback=True) - The user starts a new session
With handback=True, that reply is your send-off — after it is
delivered, control returns automatically. The platform adds no farewell on
your behalf: say the goodbye in your agent's own words (let your LLM word
it for the moment), and name the manager — req.manager_name
carries the user's chosen name for their assistant, so "back to Pippa
with you" instead of "returning you to the manager". She then
acknowledges her return in her own voice. Hand back only when the user is
done — never mid-task.
On the connect transport, a turn your handler is still working on when
the user moves on is withdrawn: req.is_cancelled() turns
True and whatever you return afterwards is dropped, and a
deferred reply pushed later is refused with the reason
reply_token_cancelled. Over webhooks the method is always
False.
Nicknames
When you register your agent, you set a suggested name — the default name users use to reach your agent by voice. If you also register a trademarked name, users can reach your agent by either one; the platform holds a trademarked name for one agent alone, and Pip announces the agent by its display name whichever name was said. Users can also override these with a personal nickname.
For example, a user might say "Hey Pip, can I call George something else? Let's call him G." From then on, that user reaches your agent by saying "G" instead of "George." Nicknames are per-user and don't affect other users or your agent's registered identity.
Authentication modes
You control how users authenticate with your agent. Options are configured in the developer portal. Today, access to an agent is enforced through publication status and private invites; the credentialed modes below describe the portal configuration surface and are not yet enforced end to end — most agents should choose None (public):
| Mode | How it works |
|---|---|
| None (public) | Any Pipbit user can talk to your agent with no credentials. |
| Voice credentials | User speaks a username and password. Best with spelled-out credentials. |
| Voice + email link | User speaks a username, then Pipbit emails them a verification link hosted by you. |
| Voice + SMS code | User speaks a username, then receives an SMS verification code. |
| OAuth / web redirect | Pipbit sends the user a link to your OAuth consent page. Best for services like Spotify, Ring, or banking. |
These modes gate access before a conversation starts. If your agent links accounts in-conversation with the SDK (account linking), choose None (public) and leave the auth configuration URL blank — the SDK supplies the per-user consent URL dynamically.