DocsAIAI Integration

AI Integration: Process Text with AI in RunMacro

Desktop ModeBrowser ModeRunMacro 3.5+

AI Integration sends text from a variable or clipboard with a prompt to your configured AI provider, then stores the reply in a variable or clipboard. A provider must be enabled in Settings first.

Dialog & quick setup

RunMacro AI Integration command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the AI Integration command in RunMacro.
  1. Open Settings › AI and configure your preferred AI provider (OpenAI, Gemini, Claude, or Custom Endpoint with API key + model).
  2. Add an AI › AI Integration command to the workflow.
  3. Choose the Input source: Variable or Clipboard. For a variable, enter its name.
  4. Write a Prompt describing the task (you can insert variables with {name} syntax).
  5. Choose the Output target: save to a variable (enter variable name) or the clipboard.
  6. (Optional) Set min/max words to bound the reply length. Save and test.

Options reference

Input source (Variable / Clipboard)

Choose whether the AI input text comes from a variable or the current clipboard.

Input variable

Name of the variable holding the text to process (used when the source is Variable).

Prompt

Instruction describing what the AI should do. The input text is appended after it. You can insert variables with {name}.

Provider

Leave empty to use the default provider from Settings, or select a specific provider (such as OpenAI / ChatGPT, Gemini, Claude, or Custom Endpoint).

Output target (Variable / Clipboard)

Where the AI reply is saved: a variable (enter a name) or the clipboard.

Min / max words

Bound the reply length. 0 means no limit. Minimum cannot exceed maximum.

Modes & when to use

Desktop Mode

Runs in both Desktop and Browser modes.

Browser Mode

Best for

  • Summarize or rewrite a piece of collected text.
  • Translate content to another language between steps.
  • Classify or label data, then branch on the result.
  • Generate short content within a min/max word limit.

Use an alternative when

  • You do not want to send data to an external service.
  • No AI provider can be configured.
  • You need 100% deterministic output — AI replies can vary between runs.
Before you run
  • At least one AI provider enabled in Settings (OpenAI, Gemini, Claude, or Custom Endpoint) with a valid API key and model.
  • Internet access to call the API.
  • Input text available in a variable or the clipboard.

Real Example: Summarize Clipboard Text with AI

Example: summarize clipboard content

  1. Copy a block of text (or use Copy Text to grab it into the clipboard).
  2. AI Integration: Source = Clipboard, Prompt = "Summarize the following briefly".
  3. Output target = variable summary, Max words = 60.
  4. Use {summary} in later steps.
Expected result: RunMacro calls the AI provider and stores the returned text in the chosen variable or clipboard; it logs the number of characters received.

Tips & limitations

You must configure an AI provider (API key + model) in Settings before the command can run. If it is not ready, the command logs a reason and returns failure.
Prompt text and input data are sent to an external AI provider. Do not send sensitive data if your policy disallows it.
  • Depends on an external service: needs a valid API key and stable network.
  • A per-command model does not override the model configured in Settings.
  • Results may differ between runs.

Applies to RunMacro 3.5+ · Desktop Mode & Browser Mode · Windows 10/11

RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.