Skip to content
Docs

Ask AI step: a prompt with your data

Send a prompt with your data to Claude and use the answer, as text or named fields, in later steps. Foliot pays; daily limits and where prompts go.

Updated

Ask AI sends a prompt built from your data to Claude and gives the answer to later steps, as text or as fields you name.

How to set it up

  1. Add an Ask AI step and write the Prompt, inserting data with + Data. For example: “Summarize this message in one sentence: …”.
  2. Choose Answer as Text or Fields. With Fields, name each field you want (like sentiment or summary) and pick its type: text, number, yes or no, or a list of text. Up to 10. The AI answers with exactly those fields, every run, and later steps pick each one, even before a test.
  3. Optional: Instructions on how to answer, like “You are a support agent. Be brief and friendly.”
  4. Test this step asks for real. It counts toward the daily limit.

Output

Text: the answer as text. Fields: one value per field you named, in its type. A field the answer doesn't have is empty (null) rather than made up, and a value in the wrong shape is converted when that's safe (“yes” to a yes or no, “3.5” to a number) or left empty. The run never fails over the shape of the answer.

Limits

  • AI calls a day: 50 on Free, 500 on Pro (UTC days). Foliot pays for them; you don't need an API key. When the AI service is busy, the step is retried; a call it turned away doesn't count. One it answered counts, and so does one that timed out (it isn't retried).
  • Prompts up to 20,000 characters; answers up to 1,500 tokens; 18 seconds per call.
  • The model is Claude Haiku (claude-haiku-5-5) from Anthropic. Prompts and the data in them go to Anthropic and may be processed outside the EU.
  • To build a whole workflow from a sentence instead, see Describe a workflow.