n8n-nodes-dataforseo
Version:
DataForSEO is an SEO and marketing data provider, empowering businesses with invaluable insights via APIs and databases.
361 lines • 11.5 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChatGptOperations = void 0;
exports.ChatGptOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['chat_gpt'],
},
},
options: [
{
name: 'Get Live ChatGPT LLM Responses',
value: 'get-live-chat-gpt-llm-responses',
action: 'Get live chat gpt llm responses',
description: 'Retrieves structured responses from a specific ChatGPT AI model, based on the input parameters',
},
{
name: 'Get Live ChatGPT LLM Scraper Results Advanced',
value: 'get-live-chat-gpt-llm-results-advanced',
action: 'Get live chatgpt llm scraper results advanced',
description: 'Provides live advanced results from ChatGPT searches',
},
{
name: 'Get Live ChatGPT LLM Scraper Results HTML',
value: 'get-live-chat-gpt-llm-results-html',
action: 'Get live chatgpt llm scraper results html',
description: 'Provides raw HTML page of the ChatGPT LLM Scraper results for the specified keyword, language, and location',
},
{
name: 'Get ChatGPT LLM Scraper Results Advanced',
value: 'get-chat-gpt-llm-results-advanced',
action: 'Get chatgpt llm scraper results advanced',
description: 'Provides advanced results from ChatGPT searches',
},
{
name: 'Get ChatGPT LLM Scraper Results HTML',
value: 'get-chat-gpt-llm-results-html',
action: 'Get chatgpt llm scraper results html',
description: 'Provides advanced results from ChatGPT searches',
}
],
default: 'get-live-chat-gpt-llm-responses',
},
{
displayName: 'Prompt for the AI Model',
name: 'user_prompt',
type: 'string',
required: true,
hint: 'The question or task you want to send to the AI model. You can specify up to 500 characters',
default: '',
displayOptions: {
show: {
operation: [
'get-live-chat-gpt-llm-responses'
],
},
}
},
{
displayName: 'Name of the AI Model',
name: 'model_name',
type: 'string',
required: true,
default: '',
hint: 'If the basic model name is specified, its latest version will be set by default. For example, if gpt-4.1 is specified, the gpt-4.1-2025-04-14 will be set as model_name automatically. You can receive the list of available LLM models by making a separate request to the <a href="https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_responses/models">Models endpoint</a>',
displayOptions: {
show: {
operation: [
'get-live-chat-gpt-llm-responses'
],
},
}
},
{
displayName: 'Keyword',
name: 'keyword',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
operation: [
'get-chat-gpt-llm-results-advanced',
'get-chat-gpt-llm-results-html',
'get-live-chat-gpt-llm-results-advanced',
'get-live-chat-gpt-llm-results-html'
],
},
}
},
{
displayName: 'Task Priority',
name: 'priority',
type: 'options',
options: [
{
name: 'Normal Execution Priority',
value: 1
},
{
name: 'High Execution Priority',
value: 2
}
],
default: 1,
displayOptions: {
show: {
operation: [
'get-chat-gpt-llm-results-advanced',
'get-chat-gpt-llm-results-html'
],
},
}
},
{
displayName: 'Location',
name: 'location_name',
type: 'string',
required: true,
hint: 'Full name of the location. Example: English. You can find the supported locations in the <a href="https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/locations">DataForSEO documentation</a>',
default: '',
displayOptions: {
show: {
operation: [
'get-chat-gpt-llm-results-advanced',
'get-chat-gpt-llm-results-html',
'get-live-chat-gpt-llm-results-advanced',
'get-live-chat-gpt-llm-results-html'
],
},
}
},
{
displayName: 'Language',
name: 'language_name',
type: 'string',
required: true,
hint: 'Full name of the language. Example: English. You can find the supported languages in the <a href="https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/languages">DataForSEO documentation</a>',
default: '',
displayOptions: {
show: {
operation: [
'get-chat-gpt-llm-results-advanced',
'get-chat-gpt-llm-results-html',
'get-live-chat-gpt-llm-results-advanced',
'get-live-chat-gpt-llm-results-html'
],
},
}
},
{
displayName: 'GPS Coordinates of a Location',
name: 'location_coordinate',
type: 'string',
hint: 'Parameter should be specified in the “latitude,longitude” format. Example: 52.6178549,-155.352142',
default: '',
displayOptions: {
show: {
operation: [
'get-chat-gpt-llm-results-advanced',
'get-chat-gpt-llm-results-html',
'get-live-chat-gpt-llm-results-advanced',
'get-live-chat-gpt-llm-results-html'
],
},
}
},
{
displayName: 'Maximum Number of Tokens in the AI Response',
name: 'max_output_tokens',
type: 'number',
default: null,
typeOptions: {
numberPrecision: 0,
},
displayOptions: {
show: {
operation: [
'get-live-chat-gpt-llm-responses'
],
},
}
},
{
displayName: 'Randomness of the AI Response',
name: 'temperature',
type: 'number',
default: null,
typeOptions: {
numberPrecision: 2,
minValue: 0,
maxValue: 2
},
displayOptions: {
show: {
operation: [
'get-live-chat-gpt-llm-responses'
],
},
}
},
{
displayName: 'Diversity of the AI Response',
name: 'top_p',
type: 'number',
default: null,
typeOptions: {
numberPrecision: 2,
minValue: 0,
maxValue: 2
},
displayOptions: {
show: {
operation: [
'get-live-chat-gpt-llm-responses'
],
},
}
},
{
displayName: 'Enable Web Search?',
name: 'web_search',
type: 'boolean',
default: false,
displayOptions: {
show: {
operation: [
'get-live-chat-gpt-llm-responses'
],
},
}
},
{
displayName: 'Force AI Agent to Use Web Search?',
name: 'force_web_search',
type: 'boolean',
default: false,
displayOptions: {
show: {
operation: [
'get-live-chat-gpt-llm-responses',
'get-chat-gpt-llm-results-advanced',
'get-chat-gpt-llm-results-html',
'get-live-chat-gpt-llm-results-advanced',
'get-live-chat-gpt-llm-results-html'
],
},
}
},
{
displayName: 'ISO Country Code of the Location',
name: 'web_search_country_iso_code',
type: 'string',
default: '',
hint: 'Required if web_search_city is specified',
displayOptions: {
show: {
operation: [
'get-live-chat-gpt-llm-responses'
],
},
}
},
{
displayName: 'City Name of the Location',
name: 'web_search_city',
type: 'string',
default: '',
displayOptions: {
show: {
operation: [
'get-live-chat-gpt-llm-responses'
],
},
}
},
{
displayName: 'Instructions for the AI Behaviour',
name: 'system_message',
type: 'string',
default: '',
hint: 'Defines the AI’s role, tone, or specific behavior',
displayOptions: {
show: {
operation: [
'get-live-chat-gpt-llm-responses'
],
},
}
},
{
displayName: 'Conversation History',
name: 'message_chain',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
placeholder: 'Add message',
options: [
{
name: 'values',
displayName: 'Message',
values: [
{
displayName: 'Role',
name: 'role',
type: 'options',
options: [
{
name: 'User',
value: 'user'
},
{
name: 'AI',
value: 'ai'
}
],
required: true,
default: 'user',
},
{
displayName: 'Message',
name: 'message',
type: 'string',
required: true,
default: '',
},
],
},
],
required: true,
default: [],
displayOptions: {
show: {
operation: [
'get-live-chat-gpt-llm-responses'
],
},
},
},
{
displayName: 'Return Expanded Citation Bar in HTML Results?',
name: 'expand_citations',
type: 'boolean',
default: false,
displayOptions: {
show: {
operation: [
'get-chat-gpt-llm-results-html',
'get-live-chat-gpt-llm-results-html'
],
},
}
}
];
//# sourceMappingURL=chat_gpt.js.map