Skip to main content

ai_completion

Scripting

Requests text completion from the bundled AI assistant.

Parameters

Parameter Type Required Default Description
prompt string Yes Natural language instruction for the AI
provider string No openai AI provider
Options: openai, anthropic, local
model string No gpt-3.5-turbo Model name
input_text string No Additional input text for the prompt
json_mode boolean No false Request JSON output

Usage Example

RTILA X PROJECT JSON

    {
  "command": "ai_completion",
  "params": {
    "prompt": "Extract all product names from the page and return them as JSON.",
    "provider": "openai",
    "model": "gpt-3.5-turbo",
    "input_text": "",
    "json_mode": true
  }
}
  

Related Scenarios

Related Learning Articles

Was this helpful?