Beside the API reference, Put an agent on your site and Let people connect their accounts; this guide in Markdown.

Your chat app

Your chat app is your people's own app for your agents: your name, your look and your sign-in, at an address of yours. This guide explains how it works and how to set it up in your console, for the people who run it and for developers.

Its address

Opening it

Your chat app is closed until an owner or a manager opens it in Deliver → Chat app.

Who can join

Access → Sign-in says who can make an account:

Access → People invites people by address.

How people sign in

The ways to sign in are an email code, a password and passkeys, each on unless you turn it off in Access → Sign-in.

People manage their own account in Settings › Security: their password, passkeys, two-step verification, their devices and their recent activity.

Single sign-on

Single sign-on signs your people in to the chat app with your organization's identity provider, over OpenID Connect. Set it up in Access → Single sign-on, or in the chat app's own admin area:

  1. Add identity provider. Give its issuer URL, such as https://login.yourcompany.com. Its discovery document is read, and must offer an authorization and a token endpoint. For a provider with no discovery document, enter its endpoints manually: its issuer, its authorization, token and UserInfo endpoints, and its JWKS URI.

  2. Its OAuth client. At your identity provider, create a confidential OAuth client (an OpenID Connect application) for the authorization code flow, with the redirect URI and the scopes the form shows:

    • the redirect URI is your chat app's address and /api/v1/passport/sso/callback;
    • the scopes are openid email profile, and your groups claim's scope where your provider lists one;
    • its ID tokens are signed with an asymmetric key, such as RS256 or ES256, never with the client secret.

    Paste its client ID and secret, and save: they're checked at your provider's token endpoint, and the secret is never shown again. The provider's page opens.

  3. Who signs in, on the provider's page.

    • Your domains. People whose address is at them sign in with your provider, and your provider's word on such an address is trusted: make sure people can't change their own email there.
    • Required. Such an address must use single sign-on: it reads "This address signs in with your organization's account." at every other way in.
    • Accounts made. With it on, people at your domains get an account the first time they sign in, even when only invited people may join.
    • Groups. Your provider's groups claim, picked from the claims it lists, puts each person in your groups, value by value, at every sign-in.
  4. Test, then turn it on. Both are at the top of the provider's page. Test sign-in signs in through it in a window: you see what your provider said and what would happen, and nothing is made. Turn on is beside it once your provider accepts its OAuth client. A test and turning it on use what's saved, so save your changes first.

People then see "Continue with {provider}" on the sign-in page. Someone signed in this way confirms it's them through your provider too, when "Confirm it's you" asks.

One identity provider can serve both: single sign-on to the chat app, and embed sign-in, your site's tokens for the embed. A person known on your site and in the chat app is then one person, with one history.

People, groups and the admin area

Agents in it

What your people can do

For developers: the routes it uses

On your chat app's address, the app calls the routes below under /api/v1, with the access token its sign-in issues. They're the person routes the API host serves, each in the API reference, taking your chat app's tokens instead of your API keys. The sign-in itself is under /api/v1/passport, its discovery document at /api/v1/passport/.well-known/openid-configuration.

Route What it is
GET /me Who's signed in: their name, language, time zone, role, photo and pins
GET, PUT /me/about About you
PUT /me/photo Their photo
PUT, DELETE /me/pins/{kind}/{id} A pin, of a chat or an agent
GET /me/search Their chats by their words
DELETE /me/conversations Every conversation of theirs, at once
GET /me/memory What each agent remembers of them
GET /me/connections Their connected accounts
GET /me/files The files agents kept for them
GET /agents The agents in the chat app they may use, in its order
GET, POST /agents/{id}/conversations Their chats with an agent, and a new one
GET /conversations Their chats with every agent
/admin/… The admin area's routes, for admins alone

What goes wrong

People read Because
"{name} isn't open yet." The chat app is closed: open it in Deliver → Chat app.
"There's no {name} account for {email}. Ask your admin for an invitation." At the sign-in page: that address has no account and may not make one. Invite it, or widen who can join.
"{email} has no open invitation to {name}. …" Only invited people join, and that address has no invitation, or its invitation lapsed after 14 days: send it again, or widen who can join.
"That address isn't one {name} takes. …" Their address isn't at your domains: invite it, or add its domain in Access → Sign-in.
"Ask {name}'s admin for an invitation." They may not join: invite them, or widen who can join.
"That way of signing in is turned off here." The way they tried is off in Access → Sign-in.
"This address signs in with your organization's account." Their address is at a domain where single sign-on is required.
"Confirm it's you" An admin's sign-in is over an hour old for a change in the admin area, or a person is changing their own account.

The admin area also says, in words, when an admin must turn two-step verification on before they can use it.