Run your flow's tests in CI
December 4, 2026 · release
@voicethere/agent 0.41.0
Until now you checked a flow by talking to it, in the simulator or with flow run --mock. That works for one conversation and stops working when you have twenty and a colleague edits the file.
Flow tests run the same engine as your agent, on text. They need no VoiceThere key, no LLM key and no network, so they run in the CI you already have. A test never blocks a deploy; it tells you the flow no longer behaves the way you wrote down.
The flow-agent template now contains a Jest setup, a fake invoices API and a .github/workflows/flow-tests.yml that validates the flow, runs the tests and uploads a JUnit report. A flow's outside calls can be answered three ways: from your mock file, by your own server on a local port, or by nock. If you also test your API with supertest, the same Express app can serve both.
You can write scenarios as data in voicethere.flow.tests.json and run them with npx @voicethere/agent flow test, which exits 1 when a scenario fails and can print JUnit XML.
In the dashboard, the Flow tab has a Tests panel. Run all runs the scenarios against your mocks, and a failure opens the simulator on that scenario. After a good run in the simulator, name it and choose Save as test to turn it into a scenario. Save the flow to keep it.
Everything here needs @voicethere/agent 0.41.0 or later. Existing projects keep working without tests; the docs show the two lines to add them by hand.
Try it
- Guide, with GitHub Actions, GitLab CI and a Jest example: Test your flow
- The rest of the editor: Flow builder