
poppy.json), runs the conversations, and verifies access tokens. Your organization publishes the discovery document on its own domain and, optionally, connects its own OAuth authorization server so that customers can sign in.
For details about the protocol, see the Poppy documentation.
Key benefits
- Discoverable by Personal Agents. The discovery document describes your organization and its agent.
- Optional sign-in. Customers can sign in at your own authorization server, so your flow or agent knows whose account it works on.
Restrictions
- Only JSON Web Token (JWT) access tokens sent as bearer tokens are accepted. Opaque tokens and DPoP aren’t supported.
- Your authorization server must meet the requirements in the Poppy documentation.
- Access tokens must be JWTs with the header value
typset toat+jwt. They must use your organization URL as audience and include the claimsclient_idandsub. Thescopeclaim is optional. - Sign tokens with RS256, PS256, or ES256.
- Serve the issuer metadata and its keys over public HTTPS.
- Handover to a live agent, streaming of events, Direct Conversations, tasks, and protocol extensions aren’t supported.
Prerequisites
- A flow or agent that can respond to text messages.
- A domain that you control. You must be able to proxy paths on this domain to the endpoint.
- Optional: an OAuth authorization server. It must publish its metadata at
<issuer>/.well-known/oauth-authorization-serverand listhttps://<organization domain>underprotected_resources.
Generic endpoint settings
Learn about the generic endpoint settings on the following pages:Endpoint-specific settings
Setup tab
Get started with Poppy
This card appears next to the settings and lists the steps for your organization:- Fill in the Organization section and save.
- On your organization domain, proxy
/.well-known/poppy.jsonto the Discovery document URL in the Integration section. Personal Agents look for it only on your own domain. - Optional: set the OAuth issuer on the Advanced tab, then proxy
/.well-known/oauth-protected-resourcein the same way. - Test the endpoint by pointing a Personal Agent at your organization domain and starting a conversation.
Organization
This section defines what Personal Agents read about your company and its agent inpoppy.json.
When you create the endpoint, it sets the organization name to the endpoint name and the organization domain to a placeholder (
example.com). Replace both.
Integration
This section shows the endpoint URL and links to the documents that you proxy from your organization domain.Advanced tab
Account access
This section is optional. Without an OAuth issuer, every conversation is signed out. With an issuer, Personal Agents sign your customers in at your authorization server and send an access token. Cognigy.AI verifies the tokens against the keys the issuer publishes and never issues them.
If you remove the issuer, the endpoint resets both toggles when you save. If you turn on Sign-in disabled, the endpoint turns off Require sign-in.
How to set up
The endpoint serves two documents from its own URL. Personal Agents read them from your organization domain, so you proxy both paths to the endpoint. Optionally, you connect an OAuth authorization server so that customers can sign in.Configure in Cognigy
Configure the Personal Agent Protocol endpoint
Configure the Personal Agent Protocol endpoint
- In the left-side menu of your project, click Deploy > Endpoints.
- On the Endpoints page, click + New Endpoint.
- In the New Endpoint dialog, in the Developer category, select Personal Agent Protocol and click Create endpoint.
- On the Setup tab, in the Organization section, enter the Organization name, Organization domain, and, optionally, an Agent description. Save changes.
- In the Integration section, click Open poppy.json. Copy the URL of the page that opens.
- Optional: to let customers sign in, go to the Advanced tab. In the Account access section, enter the OAuth issuer and save changes. Then, on the Setup tab, click Open protected resource metadata in the Integration section and copy the URL.
- Optional: on the Advanced tab, turn on Require sign-in if the agent needs the user’s account before it can help.
Configure on your organization domain
Proxy the discovery documents
Proxy the discovery documents
- On your organization domain, proxy
/.well-known/poppy.jsonto the URL that you copied from Open poppy.json. - Optional: if you set an OAuth issuer, proxy
/.well-known/oauth-protected-resourceto the URL that you copied from Open protected resource metadata. - Make sure your authorization server meets the requirements in Prerequisites and Restrictions.
Use the account in your flow
Read the Poppy data and request sign-in
Read the Poppy data and request sign-in
Each message from a Personal Agent carries the following protocol fields in
input.data._poppy:Any other
data that the Personal Agent sends with the message is available in input.data.One Poppy conversation is one Cognigy session. Users are identified by pseudonymous IDs that each Personal Agent assigns, so the endpoint doesn’t create contact profiles for them.The endpoint returns the text and data that your flow or agent outputs to the Personal Agent as messages. If the flow fails, the Personal Agent receives the generic message The agent failed to process this request. instead of the error details.To ask for sign-in during a conversation, output the following data from your flow or agent:Verify the setup
Check the discovery document
Check the discovery document
- On the Setup tab, click Open poppy.json.
- Check that the document shows your organization and
protocol_version: "1.0". The agent description appears underagent.protocols[0]. - If you set an OAuth issuer, check that
poppy.jsoncontainsauth.issuer.