# AI Inference

Call a language model to generate text from a prompt, for tasks such as summarization, rewriting, or explaining a classification.

Use [Information Extraction](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/processing/workflow/nodes/ai-processing/information-extraction.html.md) when you need fixed fields and their available source references.

## Configure generation

| Setting | Description |
| --- | --- |
| Prompt | Required and nonempty; combine instructions with upstream content |
| System prompt | Optional role, style, and output requirements |
| LLM model | Optional; defaults to the workspace AI inference service configuration |
| Temperature | Optional sampling parameter passed to the model |
| Maximum tokens | Optional; if supplied, must be a positive integer |

Parse files first, then include their text in the prompt.

## Use the output

`text` and `result` contain the same generated text. `model` identifies the model used. Bind either text field to the next step.

For extraction governed by a JSON Schema, use [Information Extraction](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/processing/workflow/nodes/ai-processing/information-extraction.html.md).

## Example: summarize meeting action items

Flow: Parse Audio → AI Inference → Save to CloudSigma Volume.

Include the transcript's `text` in the prompt. Ask for the task, owner, and due date, and instruct the model to leave missing information unspecified. Save the generated text as a file.

## Related pages

- [Variables and data flow](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/processing/workflow/variables-and-data.html.md)
- [Run and debug](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/processing/workflow/run-debug.html.md)
