You can authenticate users to bring highly personalised tasks into your chatbot. Solvemate Authentication is built in a way that you can keep the existing login flow of your website or app, while guaranteeing full security on all chatbot operations.
Authenticated routines allow you to
- Display sensitive and personalised information in the chatbot
- Allow the change of sensitive data via the chatbot
That way, you can increase the level of automation on your service tasks and you can make the chatbot your main interface for your service tasks.
If users reach an Authenticated Routine in the chatbot, there are two cases:
- They are not yet logged in
- They are already logged in
1. Not yet logged in
In this case, the user will see a message and a button that brings them to your login page.
Once they are logged you, you can bring them back to the widget and they continue from where they left.
2. Already logged in
In this case, the user will directly see the form to execute their actions.
The secret to generate and validate the JWT is only known to you. Solvemate is not able to generate any tokens and is therefore not able to run Authenticated Routines by its own.
The token can be provided on page load or later. It is also possible to set the token while having a conversation on the chatbot. As the token is not stored by Solvemate, you need to set the token whenever you want to allow Authenticated Routines.
If you want to log out a user, you can simply set the token to
To create an Authenticated Routine, you need to first create an integration.
- Go to Admin -> Integrations
- Click on “Add new integration” and choose “User Authentication”
- Define the details like the URL to your login page and save the integration
Once this is done, you can create components based on this integration.
- Go to Workspace -> Components
- Click on “Add new component” and choose your integration under User Authentication section
- Define the Authenticated Routine and save
The JWT is accessible as an event parameter and you can attach it to your API calls.
import logging logger = logging.getLogger() logger.setLevel(logging.INFO) def handler(event, context): logger.info('token: %s', event['USER_TOKEN']) return 'Hello world!'