How AI works in your processes

Before you add AI to a process for the first time, read how it works in Odigos: which data leaves your environment and how to keep costs under control. To set up an AI step, see Delphi AI task.

The basic idea

In Odigos, AI is a step in a process, like a task or an email. The process decides when the AI acts, which data it gets and what happens to its answer, so it works the same way every time. Afterwards, StatusQuo shows what happened in each case, including the AI steps.

Three AI blocks

You add AI to a process in Orchestra, with one of three blocks:

  • Delphi AI task: ask the AI a single question, for example to summarise a request and rate how urgent it is. You use the answer in the steps that follow.
  • Search knowledge base: finds the passages in a knowledge source that best match a question. You add the result to the question of an AI task.
  • Agent block: the AI decides the order of a group of steps itself, until it reaches the goal. Only use it when the order really depends on the content. If the order is fixed, an AI task followed by a gateway is cheaper and more predictable.

A fixed answer format instead of free text

Left to itself, a language model answers in free text. A process can't do much with that: a gateway can't reliably choose a path based on a sentence that is different every time.

That's why you usually give an AI task a result contract. It defines the fields in the answer, for example an urgency from a fixed list and a short summary. You then use those fields as tags, including in a gateway.

Odigos checks the answer against the result contract. If it doesn't match, the AI gets the error back and tries again. If it still doesn't match, the step stops with a notification. This keeps incomplete answers out of your process.

If a gateway chooses based on the free-text answer of an AI task without a result contract, Orchestra rejects the process when you save it.

Which AI provider does the work

Odigos doesn't have its own language model. The work goes to an AI provider, and you choose which one for each AI task:

  • GPT (OpenAI): the default.
  • Claude (Anthropic).
  • Delphi (own model host): an open model hosted by Digidux. You don't need a subscription of your own for it. This model doesn't read files.

For OpenAI and Claude, connect your own subscription in Hub, under AI. Usage then runs through your own account with the provider. Odigos checks the key with the provider as soon as you connect it. Without a connection, the AI task refuses to run and points you to that page. For how to connect, see Connect a system in Hub.

You also choose the model for each AI task. There is no default model. Choose the lightest model that can handle the task: it's faster and cheaper.

What data goes to the AI

The AI only receives what you put in the AI task: the question, the role, the extra context and any files. You add data from your process to these with tags.

Odigos assesses every piece of data you add to the question, role or context with a tag. If a field has the security level Confidential or Restricted, or the GDPR level High or Special category, the question isn't sent. The step stops with a notification. This applies to every AI provider.

Files are only sent if you list them in the AI task. A file attached to a record follows the classification of its upload field. A standalone file from the library has no classification. It only goes to OpenAI or Claude if you allow this in Budget under AI usage. This is off by default.

What AI costs

Every question to an AI provider costs money. Providers charge per token, a small piece of text. You pay for what you send and for what the model writes back. Odigos helps you keep costs under control:

  • In the panel of an AI task, What does this step cost? shows the expected and the maximum cost of one run. Enter how often the step runs per month to see the monthly cost as well.
  • When you save, Orchestra checks a few cost rules. If an AI task puts a whole list into the question without a limit, the process is rejected. The same happens if a process with an AI task starts on every change to a record, without a filter on a field.
  • In Budget, AI usage shows usage per day and per process. This is also where you set a daily limit for all AI in the environment combined. There is no limit by default.

The Delphi app

The Delphi app brings together all the AI in your processes.

  • Use cases: every AI step in the latest version of your processes. For each step, you see which prompt it uses, or whether it has its own text.
  • Prompts: instructions you manage separately from a process. A prompt has a role, an instruction and input variables, such as the tone you want. What you save is a draft. A process only uses the new text once you publish it.
  • Fragments: pieces of text shared by several prompts, such as your company's tone of voice. When you change a fragment, the change applies to every prompt that uses it.

To create a prompt, go to Prompts and click New prompt. Add a variable to the text as a tag, such as {{tone_of_voice}}. To include a fragment, use {{> naam}}.

The Nieuwe prompt (New prompt) form in the Delphi app, with the Naam (Name), Omschrijving (Description), Rol (Role) and Instructie (Instruction) fields and an explanation of how to include a variable and a fragment.

Note: a language model can make mistakes. If something depends on the answer, such as a decision on a request or an email to a customer, have a person check it first, for example with a manual task after the AI task.

See also