Embedded conversational assistant
Athento allows you to embed a chat in an external website so that your users (for example, your organization’s customers) can check their case file —what state it is in, what documents it contains, and what data it has— without needing to have an Athento account. It is read-only: the assistant does not create or modify documents or states.
What the user can check
For their own case file, the assistant responds about:
– The current state of the case file. Including the description of the lifecycle state.
– The possible next steps.
– The documents it contains (name and type).
– The data (fields) that have been enabled to be displayed.
Each user sees only their own case file.
How to use it
– Type the question and press Enter to send it; Shift+Enter inserts a line break.
– The header warns that you are interacting with an AI and that it is advisable to verify the answers.
– The conversation keeps the thread as long as the page is not reloaded.
Example questions: «What state is my case file in?», «What is the next step?», «What documents does my case file have?».
What the assistant knows and does not know
The assistant only has the information that is provided to it to answer, and nothing else. It does not access:
– The content of the documents or their text.
– Creation or modification dates, nor the authors.
– Data that has not been expressly enabled to be displayed.
– Any data from another case file.
This guarantee does not depend on the instructions given to it: the assistant has no way to query the system on its own, so it cannot obtain information from another case file even if explicitly asked.
Getting started
Getting started is split between the Athento team and you:
– Athento team (support): prepares the instance with the encryption configuration required for the component. Request it from support before starting.
– You: create the OAuth application in Athento, generate the component, and embed it in your website (next steps).
Prerequisites
- Ask support to prepare the instance encryption configuration.
- Create an OAuth application from the advanced administration: Athento will automatically generate for it a restricted access token that will travel encrypted inside the snippet. Create it in OAuth2 Provider → Applications (/aseadm/oauth2_provider/application/).
- Ask support to add the domain of the application or website where the component will be embedded. The snippet runs on the client’s domain, so its requests to Athento are cross-origin.
- Have an AI engine active at the instance or team level.
- Make the case file be of the folderish type.
How to generate the component
You need to be a team administrator. In the header help menu, go to the external components screen and choose the Chat assistant type. Fill in the fields:
– Client ID: the identifier of the OAuth application you created in Athento.
– Title: the title that will be shown as the chat header.
– Client key source: where the component will take, at runtime, the user identifier. It is indicated as type:name and supports: url_param:name (a URL parameter), js_var:MY_VARIABLE (a global page variable) or cookie:my_cookie (a cookie).
– Key metadata type: the case file field that contains that user identifier (it is what the value obtained in Client key source is compared against).
– Document type: the case file Form.
– Metadata whitelist: the data (fields) that the assistant will be able to mention. Anything not here is invisible to it.
Click Generate. You will get two tabs: Code (the HTML for your website) and Preview (what the chat looks like).
How to embed it in your website
Copy the HTML from the Code tab and paste it as-is into your website. The page must provide the user identifier from the source you configured in Client key source:
– With url_param:cedula: the URL includes it, for example ...?cedula=1234567890.
– With js_var:MI_VARIABLE: define the variable before the snippet (the component reads it when it loads).
– With cookie:mi_cookie: the cookie must exist in the page domain when the snippet loads.
The domain where the component is embedded must be authorized. If the chat does not connect for this reason, request it from support (it is part of the instance preparation).