Own services

The Knowledge → Own services tab lists every service your agent calls over an API: an online shop, a warehouse system, a booking system, a delivery company, any system of yours. It shows which services are connected, whether they work, which requests the agent is allowed to make, and which agents the service is given to. The agent never sees your tokens and passwords — the platform inserts them.

How this differs from “Integrations”

WhereWhat is there
The agent’s IntegrationsWhat we developed ourselves: Yandex (mail and calendar) and messaging channels — Telegram, WhatsApp, MAX, VKontakte and others
Own servicesAnything you can reach yourself: over an API, with a token or a login. This also includes MoySklad, YCLIENTS and ALTEGIO — these are not separate Smokva integrations but ready-made quick-start templates on top of those services’ open APIs

We have not tested the MoySklad, YCLIENTS and ALTEGIO templates on live accounts of those services: connect them and first test the agent with safe read requests.

Who sees the tab and what they can do

What you needPermission
See the tab and the list of services“View connectors” and “View knowledge” — the tab lives inside Knowledge. If either permission is missing, there is no tab at all, and a direct link sends you back to Bases
Add, change and delete services; enter a token right in a service“Manage connectors”. Without it the tab is view-only: there are no editing buttons
Link a token or login from Access, grant access to an agent“Manages access entries”, permission for the entry type (logins or tokens) and “View knowledge”; the access vault must be turned on
Give a service to an agent and take it back“Manage connectors” and “Configure agents”

For a role to both open the tab and change services, turn on “View knowledge” and “Manage connectors”. The role editor reminds you: if a role has connector permissions but no “View knowledge”, a note appears under the permissions.

The tab is visible even when the Access section is not turned on for you: the token is then entered right in the service. An entry from Access can only be chosen when the vault is on.

Three statuses

Every service has one of three statuses in the list and in its card. The “Not set up” reason matches what the Agents window shows for an entry in Access:

StatusMeaningReason and what to do
WorkingAt least one agent can use the service right now—
Not set upSomething is missing“no access linked” — link an entry from Access or enter a token · “the service is not given to any agent” — turn the toggle on for an agent · “access is not granted to any executor agent” — grant the entry to an agent · “the service has no available requests” — add a request · “the entry cannot be used: …” — the value is shorter than 8 characters, the login has an empty name or a colon, or the entry is damaged or uses an old key: fix the entry in Access · “the server has no encryption key” — contact Smokva support · “the access vault is turned off by the platform” — linking entries is not available yet · “the service address differs from the one set by the platform” — a MoySklad / YCLIENTS / ALTEGIO / Yandex service was created the old way with a foreign address: its token is not sent, delete it and create it again from the template
OffYou turned the service off — or it disconnected by itself and “needs to be reconnected”Turned off by you: turn the “Enabled” toggle on. Disconnected by itself: the “Reconnect” button — see below

A service that “needs to be reconnected”

If a service disconnects by itself (for example, its access was revoked), it gets the Off status with the note “needs to be reconnected”, and its card shows a block with a Reconnect button. The button exists only for services with that note and only for employees with the “Manage connectors” permission; a service you turned off yourself does not need reconnecting — the “Enabled” toggle turns it on.

How the service was connectedWhat “Reconnect” does
An entry from AccessOne click: the service is turned back on with the same entry
A token entered in the service itselfOne click: the service is turned on with the same token. Next to it there is Enter a new token — if the token was revoked or replaced: enter it and click “Save and reconnect”, and the service turns on at once

The “Enabled” toggle of such a service works the same as “Reconnect”. If the service is still “Not set up” after turning on (for example, there is no token), it is not shown as plainly “On”: the label next to the toggle reads “On, but not set up”, the reason is under the status, and the token field opens at once. While reconnecting is in progress, the window cannot be closed — wait for the result.

If the service’s access is “login and password” (Basic), two fields are entered instead of one token — Login and Password (the login without a colon). A service with “no access” takes no token at all — the server does not need one.

Important: the token is not checked when the service is turned on. If requests are refused again after “Reconnect”, enter a new token. And if the service stays “Not set up” after turning on, the reason is written next to the status (for example, an entry shorter than 8 characters — fix it in Access).

How to connect MoySklad, YCLIENTS or ALTEGIO

  1. Click Add service → From a template… and choose a template. The service address and the list of requests are already filled in and cannot be changed.
  2. Provide access. There are two ways:
    • Enter the token here — the token is kept in the service’s own vault and goes only to that service’s address;
    • Take from “Access” — choose a token you have already saved in the Access section (this needs the “Manages access entries” permission and an enabled vault). The entry stays in Access and the service gets a link to it.
  3. Click Create service. The service card opens.
  4. Give the service to an agent — see below.

Where to get the token:

ServiceWhat to enter
MoySkladA MoySklad user token — without the word Bearer
YCLIENTSA string like Bearer <partner token>, User <user token> — from your YCLIENTS partner account
ALTEGIOA string like Bearer <partner token>, User <user token> — from your ALTEGIO partner account

A template’s requests are set by Smokva and cannot be edited. The agent does not run requests that change something in the service (creating a counterparty, booking a client) by itself: it sends them to you for approval — when the platform has turned this on (see “Actions in external systems”).

Each template can be added once: an added template is marked “Already added” in the list.

How to connect your own service

Your own service is any API with an https://… address that has a token or a login.

  1. First save the token or login in the Access section (the wizard needs an entry from there: the platform inserts it into requests, and the agent never sees it).
  2. Click Add service → Your own service…, choose the entry (“Step 0”) and click “Next”.
  3. Go through the three wizard steps: Where to (name and API address) → How to send access (Bearer header, a custom header or a parameter in the address; Basic for a login) → What the agent can do (a list of requests).
  4. Click Create and link: the service, its requests and the entry link are created in one operation.

For your own services the agent only runs read (GET) requests. Requests that change data in your service cannot be created in the cabinet yet.

A 1C-Bitrix website. At step 0, switch “Start from a template” to “1C-Bitrix”: the wizard fills in the name, the custom header X-Api-Key and the “Order” request (the agent finds an order by its number, the buyer's phone or email and name, and only when all three match). All that is left is to paste the address from the settings of the Smokva module on your site. The module and the key are covered by the “How to connect” guide under the wizard steps.

The service card

Click the service name in the list. The card contains:

SectionWhat you can do
StatusSee whether the service works and the reason if it does not
ServiceChange the name; turn the service on and off. The API address and the way access is sent cannot be changed after creation — so the token can never go to another server. Need another address? Create a new service
AccessAn entry from Access: “Change”, “Unlink”, “Open in Access”. A token entered in the service: “Replace token”, “Delete token”. The token itself is never shown — only the fact and the date it was entered
RequestsWhat exactly the agent can call. For your own service: “Add request”, “Edit”, “Delete” (up to 20 requests). For a template — view only
AgentsWho the service is given to and why an agent cannot use it yet
Delete serviceBefore deleting, a window shows the consequences

Your own requests

  • Request name in plain words: the platform builds the agent-facing name from it in Latin letters (for example “Order list” → order_list). The name cannot be changed later — to rename, delete the request and add a new one.
  • What the request does is a description for the agent; it decides when to run the request from it. Up to 400 characters, one line, no markup.
  • Request address is the part after the service address. Variables go in curly braces: /orders/{id}. Latin letters, digits and the characters . _ - ~ are allowed.
  • Parameters are optional and required parameters in the address (?status=…).
  • A change applies immediately: every agent the service is given to sees it in their next task.
  • A request someone created by hand through the API with non-standard headers or a body cannot be edited with the form — it can only be deleted.

How to give a service to an agent

In the card’s Agents section every agent has a Given to the agent toggle. For an agent to really use the service, several conditions must hold — under each agent it says what is missing:

  • the service is on and has at least one request;
  • access is linked (an entry from Access or a token entered in the service);
  • the service is given to this agent (the toggle);
  • if the access is an entry from Access, the entry must also be granted to the agent: a “Grant access” link appears next to the row.

Good to know:

  • A service whose token is entered in the service itself can be given to any agent, including one that talks to customers: this is what the MoySklad, YCLIENTS and ALTEGIO cards in the agent’s “Integrations” used to do.
  • A service with an entry from “Access” is given only to agents with the Executor role — those that work on employees’ tasks: the entry is applied only in their tasks. If such a service was already turned on for a non-executor agent earlier, you can take it back with the same toggle.
  • The agent uses an entry from “Access” only in a task an employee gave it; subtasks created by other agents do not get it. This rule does not apply to a token entered in the service itself.
  • Without the “Configure agents” permission the list of agents by name is not shown — only their count.

Deleting a service

Before deleting, the window lists the consequences: what happens to the linked entry (it stays in Access, only the link is removed, and the unlinking is recorded in its history), which agents lose the service, which requests are deleted, and whether the token entered in the service is deleted. A deleted service cannot be restored — you would have to create it again. A task running at that moment is refused on its next call to the service.

The history of actions the agent proposed for your approval in this service is erased by deletion too.

Frequently asked questions

QuestionAnswer
There is no “Own services” tabYou need the “View connectors” and “View knowledge” permissions, and the platform must have external systems turned on. Ask the owner to give the role both permissions
The tab is there but there are no buttonsYou need the “Manage connectors” permission
“Your own service…” is missing from the “Add service” menuIt needs an entry from Access: an enabled vault, the “Manages access entries” permission and “View knowledge”
The service is “Not set up”Read the reason under the status and compare it with the status table above
The service is “Off — needs to be reconnected”Click “Reconnect” in the card (the “Manage connectors” permission is needed). If the token was revoked — “Enter a new token”
The agent answers “access revoked”The service was deleted, turned off or unlinked while the task was running, or the entry changed. The next task loads the current set
Can I change the service address?No — create a new service. This way the token can never go to another server
The wizard says “the service cannot point at a Smokva domain”, and the call history says “The address belongs to the Smokva platform and cannot be connected to”Servers of the Smokva platform itself (its domains and addresses, including when your own name points at them) cannot be connected as “your own service” — not by name, not by IP address, not through a redirect. There are no exceptions: use the address of your own system
Why can’t I see the last characters of the token?A token entered in the service is not shown at all: only the fact and the date it was entered. An entry from Access shows a mask if you have permission for its type
Did the agent create or change something in MoySklad/YCLIENTS by itself?No: requests that change data are sent to you for approval
Where are my MoySklad / YCLIENTS / ALTEGIO that used to be in the agent’s “Integrations”?Here, in the list. Nothing was lost: existing links work as before, tokens and requests given to agents are kept. “Integrations” now holds only Yandex and messaging channels; new MoySklad, YCLIENTS and ALTEGIO are added here with “Add service → From a template…”