Athento allows you to add two types of buttons to the quick action bar in the document view:
- Link type: when clicked, the user is redirected to a specific link.
- Button type: to execute an operation.
These buttons are added and configured from the advanced administration, in Action Buttons.
Create a new Action Button using the Add Action Button option.
Next, you must configure the following options:
- Target content type: Select the value “knowledge_base | knowledge base.”
- Target object id: The id of the knowledge base where you want these buttons to appear per document.
- Label: The help text that appears when you hover over the button.
- Style: (in json format) The custom icon we want this button to have :
- icon: icon we want to appear.
{"icon" : "fal fa-star"}- Place: The location where the button will appear. Select “KB - Document knowledge base actions.”
- Operations: The operations that will be executed when the button is pressed (if it is a button type).
- Type: Select the type of button you want in the document view.
- button: Executes the selected operations.
- link: Adds the link you want to redirect to when clicked.
- Params: If it is a Link type button, the URL must be added here in JSON format.
In addition, the KB prompt must include information that each <a> tag with an “id” attribute has the document's UUID, a name attribute with the value “kb-document-link,” and an “href” attribute with the document's URL, for example:
I am going to provide you with a list of documents with content, metadata and link. I need you to answer the question with as much information as you can deduce about these documents and a link to the document where you found the information using the URL given. Each <a> has to have documents UUID as "id" attribute, "kb-document-link" as "name" attribute, and URL as "href" attribute:
Comments
0 comments
Please sign in to leave a comment.