API
Learn more about the details of some of the most used APIs: prediction, vector-upsert
Last updated
Learn more about the details of some of the most used APIs: prediction, vector-upsert
Last updated
Refer to for full list of public APIs
Flowise provides 2 libraries:
Override existing input configuration of the chatflow with overrideConfig property.
Due to security reason, override config is disabled by default. User has to enable this by going into Chatflow Configuration -> Security tab. Then select the property that can be overriden.
You can prepend history messages to give some context to LLM. For example, if you want the LLM to remember user's name:
You can pass a sessionId
to persists the state of the conversation, so the every subsequent API calls will have context about previous conversation. Otherwise, a new session will be generated each time.
When Allow Image Upload is enabled, images can be uploaded from chat interface.
When Speech to Text is enabled, users can speak directly into microphone and speech will be transcribed into text.
Some document loaders in Flowise allow user to upload files:
Json Lines File
Those video tutorials cover the main use cases for implementing the Flowise API.
: pip install flowise
: npm install flowise-sdk
Pass variables in the API to be used by the nodes in the flow. See more:
If the flow contains with Upload File functionality, the API looks slightly different. Instead of passing body as JSON, form data is being used. This allows you to send files to the API.
To avoid having separate loaders for different file types, we recommend to use
For other nodes without Upload File functionality, the API body is in JSON format similar to .
Refer to section for more information about how to use the API.
Create a new prediction
Chatflow ID
The question being asked
The configuration to override the default prediction settings (optional)
Upsert vector embeddings of documents in a chatflow
Chatflow ID
In cases when you have multiple vector store nodes, you can specify the node ID to store the vectors
node_1
The configuration to override the default vector upsert settings (optional)
Upsert new document to document store
Document store ID
Document ID within the store. If provided, existing configuration from the document will be used for the new document
Re-process and upsert all existing documents in document store
Document store ID
No content