Helping signed-in customers without exposing account data
How the signed-in visitors setup lets a portal chatbot answer questions about one customer's own account, and what to check before you switch it on.
A lot of support questions are about the customer, not the product. "Which plan am I on?" "Is my account set up the way I think it is?" A generic help-centre chatbot can't answer those. So the ticket lands with you or a developer, who has to look it up.
The alternative most people worry about is giving a chatbot access to customer data. That worry is fair. The signed-in visitors setup in Cerberius Agents is built around a narrower idea, and it helps to understand it before you turn anything on.
What the chatbot actually knows
Inside your customer portal, a chatbot can answer questions about the signed-in customer's own account. Your server tells the chatbot who is asking and shares a short, plain-language summary of their account.
That summary is all the chatbot knows about the account. It never gets access to your systems. It only discusses that one account, with that one customer.
So you decide what goes in the summary. If you leave something out, the chatbot can't know it. That is the main control you have, and it is worth thinking about before you write any code.
How it works, step by step
- A customer signs in to your portal.
- Your server makes a short-lived token for them. The token says who they are and what the chatbot may know about their account. It is signed, so nobody can change it or make one up.
- Your page hands the token to the chat.
- The chat sends the token with every question. Cerberius Agents checks the signature and the expiry before using it.
The token is what carries the account summary. An expired or tampered token isn't used.
Two ways to get tokens
You can get tokens in two ways.
Ask us for each token. Your server calls the Cerberius Agents API with your ticket system's API key. You have no new secrets to manage, but there is a network call for every token.
Sign tokens yourself. Your server signs tokens with the chatbot's signing secret. That means one signing secret per chatbot to look after, and no network call per token.
Pick based on what your team would rather own. If you already guard API keys carefully and want fewer moving parts, the first is simpler. If you'd rather not add a network call to every page load in the portal, signing yourself avoids it.
To see the short version of the guide, go to Platform › Settings › Chatbots, open the chatbot, choose the Install tab and use the How to set it up link in the Signed-in customers row. It opens in a pop-up.
Keep tokens out of the browser
This is the one rule to get right. Make tokens on your server only. Never put the API key or the signing secret in a web page or a mobile app. Anyone who has either can pretend to be any of your customers.
A quick check before launch: look at what your portal sends to the browser, including mobile builds. Neither the key nor the secret should appear anywhere in it. The browser should only ever receive the finished token.
Decide whether the chat is for signed-in customers only
By default, the same chatbot answers everyone. It only knows about an account when a token is given. That can be fine if your portal chat also serves people who haven't signed in.
If the chatbot should be for signed-in customers only, switch on Only signed-in customers may use this chat on the Install tab. It saves straight away. With it on:
- On a page that gives no token, the chat doesn't appear at all.
- A question without a valid token is refused with "Please sign in to use this chat."
You need a signing secret first. Until there is one, the switch is greyed out and says Create a signing secret first. If you use the "ask us for each token" option, asking for one token creates a secret for you.
What to check before you turn it on
These are practical checks, based on how the setup works.
Write the account summary on purpose
Start with the questions customers really ask. Plan, renewal date, seats, whichever of those your support inbox is full of. Put in what answers those questions and nothing else. Since the summary is the chatbot's whole knowledge of the account, a short one is safer and easier to review than a long one.
Avoid putting in anything you wouldn't be comfortable showing that customer on a screen. The chatbot talks to them directly.
Make sure the token matches the person
Your server builds the token after the customer signs in. Check that the account details in it come from the signed-in session, not from anything the browser sends. The signature stops people editing a token. It can't tell you whether your own server put the right account in it.
Test with two accounts
Sign in as one test customer and ask about their plan. Then sign in as a second test customer with a different plan and ask the same question. Each should hear only about their own account. Also try asking the first account's chatbot about the second account by name, and see what it says.
Test the signed-out case
Load a portal page with no token. If you have switched on the signed-in only setting, the chat should not appear. If you haven't, the chat should still work for general help questions, but it should not know anything about an account.
Keep general help working
Account answers sit alongside the usual chatbot behaviour. It can still answer "how do I…" questions from your help centre and show Read more links to the pages it used. Where your help pages don't cover a question, it can suggest the visitor contacts your support team, and you decide what it says in its instructions. Check those instructions say something sensible for account questions the summary can't answer, such as sending the customer to a person.
What to keep out of the chatbot's reach
The summary approach suits read-only questions about a customer's own account. If a question needs someone to check systems or make a judgement, such as billing disputes or access problems, the chatbot only has the summary to go on. Decide in advance what you want it to say in those cases, and put that in the instructions.
A sensible rollout
Turn it on for your own test accounts first. Then read the actual conversations for the first week and look for answers that go beyond what the summary says. Adjust the summary or the instructions from what you see. Add detail to the summary only when customers keep asking something it can't answer.
For the setup steps in full, read the Signed-in visitors help page.