Repository navigation
v2.0.7
·
389 commits
to master
since this release
Immutable
release. Only release title and notes can be modified.
Synapse 2.0.7
A fix release: a workflow can branch on a model's answer reliably, and Human steps ask, fill in and route every field you give them.
Fixed
- A decision on a model's answer reads a field, not its words. An LLM or Agent step can now declare the fields of its answer (Answer fields in the step's panel): a Yes/No, one of a list, a number or text. The step asks the model for exactly those fields, through the provider's structured output where it has one (OpenAI, Gemini, Ollama) and in the prompt everywhere else. If an answer misses a field, the step asks the same model once more, then fails naming the field, instead of an If/Else quietly taking its "no" path. Build with AI declares these fields and no longer adds an Extract JSON step to read a model's answer.
- A Human step's fields fill in from the run.
{{ … }}in a field's label or in a dropdown's options is filled in, as the question already was. - Each of a Human step's fields is its own answer. A step with several fields keeps each answer under its own name. A field with no name, or two fields with the same name, is now an error that says which, instead of losing answers.
- An If/Else branches on a person's answer from a dropdown. "Branch on an answer" lists every Yes/No and One of field in the workflow and their values, and writes the condition for you. A condition that compares a Yes/No with the word "Yes" (it holds true or false), or a One of with a word that isn't one of its options, is warned.
- What a person reads says a missing value in words. A Human step's question and fields, and a Print, show a missing value as a short note (for example "(no value: state.review has no 'score')") instead of the raw
{{ … }}. Plain workspace variables are filled in; a secret one shows "(a secret is not shown here)" and never reaches the run, a channel or the API. Objects and lists show as JSON. - Only an approval shows Approve and Decline. A Yes/No named like an approval (approve, accept, confirm, sign off), or one marked Ask as Approve / Decline in the editor, gets the two buttons. Any other Yes/No, such as "Urgent?", is a checkbox in the form beside the step's other fields.
- Chat channels ask every field. On Telegram, Discord, Slack, Teams and WhatsApp, a Human step with several fields lists each one and what it takes, and reads the reply as
name: valuelines. A reply that doesn't fit gets an answer saying how to reply, and the run keeps waiting. - Number fields take numbers. "3" and "1,200" are read as 3 and 1200. An answer such as "three" is refused, and the person is asked again. A condition comparing text with a number fails its step with a sentence saying so, instead of going the wrong way.
- Adding a route never overwrites one. After a route was deleted, Add route on an Evaluator (or Add case on a Switch) could reuse a name the step still had and replace that route's wiring.
Changed
- Reading a field a model step doesn't declare is flagged. A condition, template or Transform that reads
state.<step>.<field>from an LLM or Agent step that doesn't declare that field is an error to Build with AI and to the MCP server's check, which say how to fix it (declare the field). The editor shows it as a warning on the step that reads it, and the workflow still runs as before. - Extract JSON fails when there is no JSON. On text that holds no JSON, the step now fails with a sentence saying so, instead of passing on an empty value that a later If/Else read as "no". Empty input works as before.
- A condition that decides on a model's own words is warned. For example
state.classify.strip() == 'URGENT'. The warning says how to declare an answer field instead; the workflow runs as it did. - Answering a Human step with several fields through the API needs each field named. Plain text is refused with the expected format, and the run keeps waiting. A step with a single text field still takes plain text.
Install
macOS and Linux
curl -LsSf https://synapseorch.com/install.sh | bashWindows (PowerShell)
irm https://synapseorch.com/install.ps1 | iexnpm, pip or Docker
npm install -g synapse-orch-ai && synapse
pip install synapse-orch-ai && synapse # Python 3.11–3.14 and Node.js 20.9+For Docker, see Docker: the image is synapseorchai/synapse-ai:2.0.7, also :latest.
Upgrading
- From 2.0.x: run
synapse upgrade. Your data stays where it is, and the database is backed up first. - From 1.x: run
synapse upgradeon your 1.x install. It moves you to 2.0 the same way 2.0.0 did; read the 2.0.0 notes for what changes.
Full changelog: v2.0.6...v2.0.7 · Documentation