AI chat completion
ai_chat_completionQuery multiple AI chatbots (ChatGPT, Gemini, Perplexity, Copilot) and receive structured answers with sources. Control caching duration and localize responses by country, city, or language.
Instructions
Get a chatbot answer (ChatGPT, Gemini, Perplexity, or Copilot) with structured sources.
Cost: 1 credit base. No multipliers. Use expiration=0 for fresh answers; default expiration=1 (day) reuses cached responses. Localize with country, subdivision, city, language, display, device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Prompt for the chatbot | |
| model | No | Which chatbot to query | chatgpt |
| country | No | ISO 3166-1 alpha-2 country code | |
| city | No | City name for geo-targeting | |
| subdivision | No | ISO 3166-2 subdivision code (e.g. 'TN' for Tennessee). Case-insensitive. Ignored if `city` is set. | |
| expiration | No | Days the cached result is reused (0 = always live; default 1). | |
| language | No | Conversation language. Common name (e.g. 'spanish'), two-letter ISO code (e.g. 'es'), or Google code. Case-insensitive. | |
| display | No | UI display language. Same format as `language`. | |
| device | No | Device emulation name (e.g. 'iphone-15'). |