Skip to content

AI check of a submission

Somebody on your team reads every submission just to sort it: complete, needs a question, not for us. An AI agent can do that first pass. It reads the form and any attached file, answers in a fixed shape, and the workflow acts on the answer. Your people then only see what needs them.

Available when: your plan includes AI agents, the organization has an active AI integration, and your role may use AI agents

Canvas with a trigger on A form is submitted, an AI agent step with Result and No result outputs, a Switch with three cases leading to different steps, and a Send email on No result
The agent gives a verdict, and the Switch acts on it.
  • An AI integration with your provider key.
  • An AI agent, here “Submission reviewer”, with its Output format set to JSON. A text agent can’t give the structured answer this recipe needs. Its instructions say what a good submission looks like, for instance: “You review project enquiries for a consulting firm. Accept those with a clear scope, a budget and a deadline.”
  • A form, here “Project enquiry”, with client_name, company, email, brief and perhaps a file field for a PDF.
  1. Create a workflow with the trigger A form is submitted on the form.

  2. From AI in the palette, drop AI agent and connect it.

  3. On Agent, pick “Submission reviewer”.

  4. On Input, write the Prompt: Review this enquiry from {{ company }}. Under Data, click Add value, with the Name brief and the Value {{ brief }}. Under Files, pick the form’s upload if it has one.

  5. On Output, set Answer format to JSON, Store the answer as to review, and paste the schema below into JSON schema.

  6. On No result, set When there is no usable answer to Branch: Result / No result.

  7. From Result, add a Switch. Set Expression to review.verdict. A switch starts with two cases, so fill those in and use Add case for the third: accept, ask and decline.

  8. Connect each case to its own step. For example: accept goes to Create documents, which sends the client an NDA to sign before you talk details, ask to a Send email to your office that prints {{ review.reason }}, and decline to a polite Send email to {{ email }}.

  9. From No result, add Send email to your office, so that a person reads this one.

  10. Save and switch it on.

The schema fixes the shape of the answer, so the following steps can rely on it:

{
"type": "object",
"properties": {
"verdict": { "type": "string", "enum": ["accept", "ask", "decline"] },
"reason": { "type": "string" },
"missing": { "type": "array", "items": { "type": "string" } }
},
"required": ["verdict", "reason", "missing"],
"additionalProperties": false
}

Every object has to set additionalProperties to false and list all its properties in required. If you forget, the Fix automatically button does it for you.

Output tab of the AI agent step with Answer format set to JSON, Store the answer as review, and the JSON schema field

The fields then appear in the variable picker: {{ review.verdict }}, {{ review.reason }}.

No result covers an empty answer, a refusal, or JSON that doesn’t fit the schema even after a retry. A provider that can’t be reached, a rejected key or a spent budget always stops the step with an error, whatever you choose here. That is why it’s worth keeping an eye on failed runs.

The AI agent card shows the model, the tokens used, the cost and Stored in {{ review }}. The Switch card after it says which case it took, for example Took case 2: ask. The prompt and the answer are not on this page: use your email to the office, or write them to a sheet.

Executed nodes showing an AI agent card with token and cost chips, followed by a Switch card with the chip Took case 2 and Cases: 3
  • Just a draft. Use an agent with the text format, set Answer format to Text and Store the answer as to answer, ask for a suggested reply, and print {{ answer }} in an email to your team.
  • Reading a document. Attach a CV or a PDF contract under Files. Pictures, PDFs and text files work, up to 10 files and 20 MB together, sent only to a model that accepts them.
  • A score. Add "score": { "type": "integer" } to the schema’s properties, list score under required, and use a Condition: review.score >= 7.