Build, test and deploy
Create a use case
Section titled “Create a use case”In the console, open Use cases and click New use case. You can start in five ways.
| Start from | What you get |
|---|---|
| Conversational agent | One new agent that talks to customers. It becomes the entry agent. |
| Agent with follow-ups | One agent plus a draft workflow it starts: wait a day, then send a message. |
| Multi-agent process | A front desk agent and a specialist, plus a draft workflow where the front desk hands customers to the specialist. |
| From a document | Agent Builder reads your requirements and plans the agents and workflows. You review the plan before it builds them. |
| Group existing agents and workflows | A use case around items you already have. Items that already belong to another use case are greyed out. |
For the templates, you choose a name, a language and whether the agents talk by voice (phone and web calls) or text (web chat). Everything is created as a draft. Nothing is published until it has been reviewed.
Add agents and workflows
Section titled “Add agents and workflows”- The Agents tab lists the use case’s agents. Add new or existing agents here, and choose the entry agent: the one customers reach first.
- The Workflows tab lists its workflows. It appears once the use case has a workflow.
- On the Map, + Add creates a new agent or workflow, or adds an existing one. In Connect mode, you connect them by clicking a source and a target. See The solution map.
To let an agent start a workflow, the workflow needs a Started by an agent trigger that allows that agent. Connecting the agent to the workflow on the map adds this for you. See Starting runs.
Test the whole use case
Section titled “Test the whole use case”Testing agents and workflows one by one does not show the journey a customer actually has. Test use case, at the top of the use case page, opens a test window docked on the right. The map stays usable beside it.
- Start with a conversation with any agent of the use case (the entry agent by default), or at a trigger of any of its workflows.
- Choose the versions to test. One switch is for agents: Live versions (what customers get) or Drafts (unpublished changes). A second switch covers the workflows the agents start. Drafts include workflows that have never been published.
- Choose Speed: Real time, Minutes as seconds or Hours as seconds. A one-day wait then takes 24 minutes or 24 seconds.
- Choose whether to talk with the agents by Chat or Voice call. Voice opens a call in your browser; allow the microphone.
- Talk to the agent as a customer would.
When an agent starts a workflow, the run appears in the window. Behind the scenes shows every run of the test and what each one is doing. Waiting on you lists what a run is waiting for, so you can act on it:
- approve or reject an approval, or complete a task, as the role it is assigned to;
- send the event a Wait for event step expects;
- complete a step that would normally be answered by a channel or another system.
When a workflow’s agent step needs the customer while you are talking to someone else, a Talk with … card appears. The current chat pauses and comes back when that step ends. During a voice test the current call is hung up instead, as there is one call at a time.
Every run started from the test window is a test run. Nothing is sent to real customers or channels, test runs never count in analytics or billing, and they are not visible through the public API or webhooks.
Submit for review
Section titled “Submit for review”Click Submit all for review. Every agent and workflow with unpublished changes goes to review. Each item keeps its own review, so a colleague can approve or send back each one. When approved, the item goes live. See Publishing and versions.
Deploy
Section titled “Deploy”The Deploy tab shows how customers and your systems reach the use case. It needs an entry agent; customers reach the use case through it.
| Section | What you get |
|---|---|
| Chat window design | The look of the chat window on your website |
| Website widget | Snippets for the chat widget, a call button and a hosted page, to paste before </body> on your site |
| SDK & API | Code for your own chat or call experience, or for conversations started from your servers |
| Workflows | For each workflow, how it starts: from your servers, by an agent, or on a schedule. API & webhooks opens the request examples |
| Test pages | Downloadable test pages for people outside the console |
| Keys | The API keys that reach the entry agent |
Phone numbers, WhatsApp and RCS connections are set on the entry agent itself. See Channels.
- A publishable key goes in your website. It is limited to the websites you list for it and can only start conversations.
- A secret key (
vcx_sk_…) stays on your server. Your servers use it to start conversations and to start workflow runs, read their status and send events. Keep it in a secret manager or environment variable. Never put a secret key in a web page or app.
Organisation admins create, limit and revoke keys in Settings → Developers. A publishable key never starts a workflow.
SDK & API
Section titled “SDK & API”For conversations from your own code, see the Node SDK and Python SDK. For workflows, see the Workflows API guide.
Test pages
Section titled “Test pages”A test page is a single HTML file: a demo website with the use case’s chat window and call button, in your chat window design. It talks to the latest saved draft of the entry agent, so people can try changes before you publish.
- Choose how long it works: 1, 7 or 30 days.
- Click Download test page and share the file.
- Anyone with the file can use it until it expires or you click Stop. Stop all stops every active test page.
Test pages use the entry agent’s test keys, so the list also shows that agent’s own test pages. A page stops working if you change the entry agent.
Export and import
Section titled “Export and import”You can move an agent, a workflow or a whole use case to another workspace, organisation or environment as a single file.
Export
- On the Use cases, Workflows or Agents list, open the item’s row menu and choose Export.
- A
.nuacempkgfile downloads. A use case or workflow always brings the agents and sub-workflows it uses.
The file does not contain secrets, credentials or phone numbers.
Import
- Click Import on the same list and choose the file.
- The preview shows what will be created and what it uses, such as MCP servers and knowledge bases. Match each one to something in this workspace, or leave it unset.
- Click import. The result lists what was created, anything left unset, and a to-do list of what to finish before publishing, such as reconnecting credentials and channels.
Only organisation admins can export and import. After an import, work through the to-do list, then submit the items for review.