Diska
Guides

Publish and receive calls

Publish a version of the agent and connect it to the phone, the public link, the widget or the API.

While you edit, you are changing the agent's draft. Customers never talk to the draft: the phone, the public link, the widget and the API always serve the published version. Publishing is therefore the step that puts your changes into production.

What publishing freezes

Each publish creates a numbered version (V1, V2, …) containing:

  • the name, description, prompt and greeting message;
  • the agent settings (voice, call settings, recording and consent);
  • the attached actions and assigned knowledge bases;
  • the assigned phone number;
  • for Flow Designer agents, the Main flow and the subflows it reaches.

Calls that start after you publish use the new version.

Publish a version

  1. In the agent editor, click Publicar (Publish). The button is disabled when there is nothing new to publish.
  2. For a Flow Designer agent, the platform validates the flow first and opens the Lista de verificação (Checklist). Errors block publishing; fix them and try again. For a Prompt Builder agent, the prompt cannot be empty.
  3. In the Publicar dialog, name the version (optional). Use Mostrar alterações (Show changes) to compare it with the last published version.
  4. Click Publicar.

Publishing requires the Owner, Administrator or Member role.

The Versões (Versions) panel shows the history. Each version's menu offers Ver alterações (View changes), Exportar para JSON (Export to JSON), Descartar rascunho (Discard draft) and Restaurar esta versão (Restore this version). Restoring only aligns the draft with that version — publish afterwards to put it into production.

Publishing settings

The Publicação (Publishing) button in the agent toolbar opens the Definições de publicação (Publishing settings), with one tab per channel:

Agent typeTabs
Inbound, Outbound, ChatTelefone (Phone), Link público (Public link), Widget, API
Voice WidgetWidget, WebSocket, API

Phone

Under Número de telefone (Phone number), click Adicionar número de telefone (Add phone number) and pick a number. The list shows your organization's active numbers, each with its status (for example Configurado — configured, Sem agente — no agent, or Credenciais pendentes — credentials pending). Importar (Import) opens the import of a SIP number from your own carrier.

  • Only Owners and Administrators can assign, change or remove numbers.
  • A number can be answered by only one Inbound agent. An Outbound agent uses the number as its caller ID, and several Outbound agents can share the same number.
After assigning or changing the number, publish the agent. The line only rings the agent once the assignment is in the published version, and it always answers with that version.

Below the number are the agent's webhooks: Inbound Webhook (Inbound agents), which receives each call before the agent speaks and can give it facts about the caller, and Data Webhook, which receives each call's data when it ends. Inicializar (initialize) sends a test request. Like the number, they apply once the agent is published. See Agent webhooks.

To get numbers, see Numbers; for what happens during a call, see Phone calls.

The public link lets anyone talk to the published version of the agent in the browser, without a Diska account.

  1. Publish the agent at least once — before that, Ativar link público (Enable public link) is disabled.
  2. Click Ativar link público.
  3. Copy the Endereço para partilhar (Address to share) or open it in a new window.

The tab also shows the Token público (Public token) and the Endpoint de sessão (API) (Session endpoint), which you only need to integrate the agent into another player.

  • Gerar novo link (Generate new link) creates a new token: every link and widget code shared before stops working immediately.
  • Desativar (Disable) stops new calls through the link. The token is kept: when you re-enable, the same link works again.

Managing the public link requires the Owner, Administrator or Member role.

Widget

The widget uses the same public channel. If it is not enabled yet, click Ativar canal público (Enable public channel). Then copy the code into your website and customise its look — see Embed the voice widget.

WebSocket

Available on Voice Widget agents: under Sessões em tempo real (real-time sessions), it shows the public channel endpoint, the request the widget and the public link use to open the voice conversation. The session protocol is not a public contract; see Realtime.

API

Summarises what the DISKA API lets your backend do (agents, calls, analytics, numbers, knowledge and webhooks) and links to these docs with the Começar com a API (get started with the API) button. Text chat with the agent and outbound calls are also available through the API, once DISKA switches them on for the organization.

Review calls

Calls from every channel are stored under Históricos (Histories). From the agent, the ⋮ → Registos de chamadas (Call logs) menu opens Histories already filtered by that agent. See Calls.

The Número de telefone warning in the Checklist does not block publishing: an agent without a number still works on the public link, the widget and the API.
Copyright © 2026