Kissflow DocsCentro de ayuda
Este artículo aún no está disponible en español. Se muestra la versión original en inglés.

Instructions, inputs, and outputs

Define one clear job, the information it needs, and typed results your app can use.

Define an agent so that each run has a clear task and a usable answer. You will write instructions, describe the inputs, and choose output types that your app can display or use in later steps.

Video: Instructions, inputs, and outputs

Write the job in plain language

  1. Open your app in AI Builder and describe one task. State what a successful result contains.
  2. Add the rules the agent should follow. Define thresholds, allowed labels, and how to handle missing information.
  3. If it uses tools, describe when each action is allowed. Include fixed destinations, such as the board or channel.
  4. Open Blueprint > Custom Agents and review the resulting instructions.

For example:

Compare the invoice total with ExpectedAmount. Use the same currency;
if the currency is missing or different, return Matches as No and
explain that the comparison needs review. When both amounts are readable
and currencies match, Matches is Yes only when the amounts are equal.
If the total cannot be read, do not invent an amount. Explain what is
missing in Reason and return Matches as No. Do not change any records.

These are example business rules. Replace them with your team's policy. Define a missing-value convention for each output before another part of your app relies on it.

Instructions are literal text. Don't write {field} placeholders expecting Kissflow to fill in values. Name the input by its key, for example "Compare the invoice total with ExpectedAmount", as the example above does.

Describe the inputs

Inputs can be required or optional. Give each one a description that explains what the value means.

Example inputTypeDescription
InvoiceAttachment (File)The invoice PDF to check
ExpectedAmountNumberThe purchase order amount in the stated currency
CurrencyTextCurrency used for the comparison
IncludeSummaryYes/NoWhether to include an invoice summary in the explanation

You can define up to 15 inputs, including one File input. On the agent card, a required input is marked with * and shows its type: Text, Number or Attachment. In the API, input types are Text, Number, Boolean and Attachment. Use a run input for information that changes with each request. Keep the common rules in the instructions.

Naming rules and reserved keys

Each input and output has a key, which is the name your instructions, pages and API calls use. Reserved keys are blocked in any letter case. Send input keys with their exact declared spelling and case.

RuleDetail
LengthUp to 64 characters
First characterA letter or an underscore
Remaining charactersLetters, digits, or underscores
UniquenessKeys must be unique within the input or output list, ignoring letter case
Reserved input keyserror, status, id, _id, type can't be used
Reserved output keyserror, status, id, _id, type, and items can't be used

Define the outputs

Ask for 1 to 10 output fields. The card shows "one answer" or "up to 10 answers" for what the agent returns. Each field is Text, Number, or Yes/No (in the API: string, number, boolean). A Number output holds only a number. Put explanations or missing-value notes in a Text output. Dates use Text; specify the format you want in the instructions. A run returns one row or a list of up to 10 rows, and an empty list is valid. Limits: instructions up to 50,000 characters, name up to 255, description up to 2,000.

Example outputTypeHow you use it
InvoiceNumberTextDisplay the invoice identifier
TotalNumberCompare or store a readable invoice amount
MatchesYes/NoRoute the record for review
ReasonTextExplain the result or missing information

Typed input and output definitions for an invoice-checking agent

Check the definitions before publishing

  1. Open the agent's Instructions & example run and click Run the example to run the Draft with the sample values, then inspect its answer. A test runs real tools.
  2. Compare it with known answers, including missing data and boundary cases. Treat Yes/No and Number outputs as checks and inspect the Reason.
  3. Refine the instructions and repeat your checks after each change.

Changing a required input or renaming an output can break pages and integrations. Review those dependencies before you ask AI Builder for the change.

En esta página