AI and online services
Components that talk to language models and other online services.
On this page
Components that talk to language models and other online services. This page holds the catalogue groups AI, Ollama, Services, External.
Each entry lists the inputs and outputs of the component, its main settings and the text of its readme. To add a component to a FlowStream, see Download components.
API
component
chatgpt.html · version 3
Sends the incoming text to ChatGPT and returns the answer.
chatgpt.html · version 3| Parameter | Type | Description |
|---|---|---|
model? |
String |
Model. One of: gpt-4 (GPT 4), gpt-3.5-turbo (GPT 3.5 Turbo), gpt-3.5-turbo-instruct (GPT 3.5 Turbo instruct), Whisper (whisper-1). Default: gpt-3.5-turbo-instruct |
apikey? |
String |
API key. |
question? |
String |
Question. |
Inputs: input (Question).
Outputs: output (Answer), error (Error).
This component can talk to ChatGPT.
Input
Input will depend on selected model
- CPT 3.5 Turbo and CPT 4
// Object
{
messages : [{ role: 'user', content: 'Text' }]
}
// or
// Array
[{ role: 'assistant', content: 'Text' }]- Whisper
// Object
{
path : 'path-to-file'
}
// or
// String
'path-to-file'- CPT 3.5 Turbo instruct
// Object
{
text : 'your question'
}
// or
// String
'your question'Output
Output also depends on selected model
- CPT 3.5 Turbo and CPT 4
'Response from assistant'- Whisper
// Object
{
text : 'transcipted text'
}- CPT 3.5 Turbo instruct
// String
'Response from assistant'
component
aicontext.html · version 1
Loads Markdown contexts for a language model.
aicontext.html · version 1| Parameter | Type | Description |
|---|---|---|
path? |
String |
Content property. Default: content |
Inputs: input (Input).
Outputs: output (Output).
This component can load multiple Markdown contexts for the LLM. It replaces text phrases defined in the header, such as [filename_defined_in_the_header] with the content defined in the context.
Context example:
----------------------------------------------------------------
Name: document1.md
----------------------------------------------------------------
MARKDOWN 1
----------------------------------------------------------------
Name: document2.md
----------------------------------------------------------------
MARKDOWN 2Usage
[document1.md]Output:
MARKDOWN 1
component
googlesearch.html · version 1
Searches Google for a keyword.
googlesearch.html · version 1| Parameter | Type | Description |
|---|---|---|
lang? |
String |
Language. Default: en |
limit? |
Number |
Results limit. Default: 5 |
Inputs: input (Input).
Outputs: output (Output).
Flow installs the npm package google-it when you add the component.
This component can google any keyword you want.
Configuration
Language (optional): Search language;Limit (optional): Limit number of results.
Input
Object| String : input expectsdata: Stringordata.text: Stringas search keywords.
Output
Arrayof found results:
component
ollamals.html · version 1
Lists the models of an Ollama server.
ollamals.html · version 1| Parameter | Type | Description |
|---|---|---|
url? |
String |
OLLAMA endpoint. Default: http://localhost:11434 |
Inputs: none.
Outputs: none.
A FlowStream can hold only one node of this component.
This component list all OLLAMA models.
component
ollamaprompt.html · version 1
Sends a prompt to an Ollama model.
ollamaprompt.html · version 1| Parameter | Type | Description |
|---|---|---|
think? |
Boolean |
Thinking. Default: false |
url? |
String |
OLLAMA endpoint. |
model? |
String |
Model. |
parse? |
Boolean |
Parse response as JSON object. Default: false |
system? |
String |
System prompt. |
temperature? |
Number |
Temperature. Default: -1 |
Inputs: input (Prompt).
Outputs: output (Response), error (Error).
This component makes a prompt into the OLLAMA engine.
{
model: 'qwen3.5:9b', // optional
think: true, // optional
content: 'User message',
images: ['base64'] // optional
}The component saves the response to the response property and the error to the error property. The output is text.
component
ollamawebsearch.html · version 1
Searches the web with the Ollama Web Search API.
ollamawebsearch.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
Ollama API Token. |
path? |
String |
Path to response. Default: response |
prop? |
String |
Read search query. Default: search |
merge? |
Boolean |
Merge content together. Default: false |
Inputs: input (Input).
Outputs: output (Output), error (Error).
This component uses the Ollama Web Search API to perform web searches. A valid Ollama API token is required for authentication and access to the service.
Payload:
{
search: 'Total.js Platform'
}Response:
[
{
"title": "...",
"url": "https://www.totaljs.com",
"content": "..."
}
]
component
opensync.html · version 2
Receives data from the OpenSync app.
opensync.html · version 2| Parameter | Type | Description |
|---|---|---|
url? |
String |
URL address + token. |
Inputs: none.
Outputs: output (Output).
This component receives a data from the OpenSync app. Data example:
{
id: String, // Internal ID
type: String, // Parsed content-type (can be empty with the "GET" method)
channel: String, // Channel
ip: String, // Host IP address
method: String, // HTTP method (upper-case)
headers: Object, // Key:value
query: Object, // Key:value
body: Object, // JSON/key:value/String
ua: String, // Parsed user-agent
files: [Object Array] // Uploaded files { filename: String, extension: String, type: String, size: Number, url: String, width: Number, height: Number }
}
component
openweather.html · version 1
Reads weather data from OpenWeatherMap.
openweather.html · version 1| Parameter | Type | Description |
|---|---|---|
type? |
String |
Request Type. One of: current (Current Weather), forecast (Forecast). Default: current |
apikey? |
String |
Api key. |
mode? |
String |
Output Type. One of: json (JSON), xml (XML), html (HTML). Default: json |
time? |
String |
Time. One of: hourly (Hourly (4 days data)), daily (Daily (16 days data)), climate (Climate Forecast (30 Days)). Default: hourly |
Inputs: input (Input).
Outputs: output (Output), error (Error).
This component can retieve weather data from OpenWheatherMap;
Input:
{
query: String, // Optional, City name, Country code, State code e.g: London, Ouagadougou, sk
lon: String, // Optional, Longitude
lat: String, // Optional, Latitude
lang: String, // Optional, Output language e.g: `en`, `de`, `sk`, `fr` etc...
units: String, // Optional, standard, metric, imperial
date: String // Optional, Timestamp (Unix time, UTC time zone), e.g. date=1586468027
}