#1311: External Search
Отредактирована: 29 дней назадSwarmica system can be connected to an external knowledge base from any source via API. The contents of the connected base will be available for search in the Swarmica knowledge base and/or on the ticket page.
To connect an external knowledge base, go to Settings - External Search and click Create in the top right. Then enter the name of the external base.

On the opened page, enter the parameters of the API request and the parser parameters.

Examples of requests
Request parameters:
{
"search_url": "https://yourdomain.tld/docs/api/search",
"http_method": "GET",
"http_headers": {
"Content-Type": "application/json; utf-8"
},
"search_param": "s"
}
Parser parameters:
{
"url_prefix": "https://yourdomain.tld",
"response_mapping": {
"url": "helpdesk.domain.tld",// Instead of helpdesk.domain.tld, enter your Swarmica domain
"body": "text",
"rank": "rel",
"title": "name"
},
"target_data_field": "*"
}
Instead of helpdesk.domain.tld enter your Swarmica domain
You can find the exact request parameters for your external source in its API documentation.
Next, at the bottom of the page, activate the desired switches as you see fit.

- Helpcenter - enable to allow search to be available to all users of your knowledge base, including unauthorized ones.
- KCS widget - enable to make search available to your employees on the ticket page.
- Enabled - activate to allow search from the connected source.