> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ask AI

> Get AI-powered answers or text completions using a prompt and any input data.

The **Ask AI** node lets you prompt an LLM (like GPT-4.1) to generate plain-text answers based on your instructions and input data.

Markifact support all the AI providers including OpenAI, Anthropic, Gemini, and more. You can select the model you want to use for your prompt.

Use this node for freeform answers, summaries, explanations, text transformations, or completions.

***

## When to Use It

Use this node when you need:

* Summarized results or explanations
* Creative outputs (e.g. ad copy, emails)
* AI-generated responses based on structured data

***

## Inputs

| Field      | Type              | Required | Description                                                                   |
| ---------- | ----------------- | -------- | ----------------------------------------------------------------------------- |
| **Prompt** | Dynamic text area | ✅        | Your instruction for the AI. You can insert dynamic data from previous steps. |
| **Model**  | Model selector    | ✅        | Select from supported AI models (e.g., GPT-4.1 Mini, GPT-4o, etc.)            |

***

## Output

This node returns a **text-based answer** generated by the selected model. You can pass it to nodes like:

* Email (to send the output)
* Slides (to render it as a report)
* Structured Output (to clean it further)

***

## Example Use Case

Imagine you retrieved Google Ads data in a previous node. You could prompt:

```txt theme={"dark"}
"Write a short summary of the key trends in this ad performance dataset."
```

## Credit Cost

Cost depends on the selected model. See the [Credits & Usage](/credits) page for details.

***

## FAQ

<Accordion title="What’s the difference between Ask AI and Analyze Data?">
  {" "}

  **Ask AI** is open-ended—use it for flexible prompts or creative outputs. **Analyze
  Data** is optimized for numeric datasets, insight summaries, and chart generation.{" "}
</Accordion>

<Accordion title="Can I insert dynamic values into the prompt?">
  {" "}

  Yes. Click the **+** icon in the prompt field to insert data from previous steps—such
  as analytics results or campaign details.{" "}
</Accordion>

<Accordion title="Can I use Ask AI to generate JSON or tables?">
  {" "}

  You can try, but it's recommended to use **Structured Output** for guaranteed formats
  like lists, JSON, or tables.{" "}
</Accordion>

<Accordion title="Is this node deterministic? Will it give the same answer every time?">
  {" "}

  No. Like most LLM completions, answers can vary slightly with the same input. Use
  tools like Structured Output or Schema if you need consistency.{" "}
</Accordion>
