Prerequisites
- A CometAPI account with an active API key - get yours here
- A FlowiseAI account or self-hosted Flowise instance - sign in to Flowise Cloud
- A current text model ID from the CometAPI Models page
- For RAG, a document source plus a Flowise-supported embeddings provider and vector store
Configure ChatCometAPI
Get your CometAPI API key
Add the ChatCometAPI node
- In your FlowiseAI chatflow canvas, click Add New.

- Search for cometapi and select the ChatCometAPI node.

- Drag it onto the canvas.

Create the CometAPI credential

Set the CometAPI base path
basePath entry:your-model-id, and adjust Temperature only if your workflow needs more or less variation.Create a basic chatflow
Add a Prompt Template


Add an LLM Chain

Save and test the flow

Switch model IDs
To switch models, keep the same CometAPI credential and base path, then change only the ChatCometAPI model ID field. Use exact model IDs from the CometAPI Models page. Avoid copying display names, provider names, or extra spaces.Configure retrieval-augmented generation
Flowise RAG has two parts: first prepare and upsert documents in Document Stores, then connect the prepared retriever to a chatflow. ChatCometAPI is the chat model that writes the final answer; the Document Store still needs a Flowise-supported embeddings provider and vector store.Create and process a Document Store
Configure embeddings and vector storage
- Embeddings: a Flowise embeddings node compatible with your data and vector store.
- Vector Store: the vector database where Flowise should store document embeddings.
- Record Manager: optional. Use it when you want repeat upserts to avoid duplicate records.
Create the retrieval chatflow
Connect Conversational Retrieval QA Chain
- Language Model input from ChatCometAPI.
- Vector Store Retriever input from the Document Store retriever.
- Memory only if your chatflow needs conversation history.
Troubleshooting
The ChatCometAPI node is missing
The ChatCometAPI node is missing
Requests fail because the base path is wrong
Requests fail because the base path is wrong
https://api.cometapi.com/v1/. In some Flowise builds this is a Base Path field. In others, add basePath inside Base Options.Do not use https://api.cometapi.com for the ChatCometAPI chatflow, because the chat node calls OpenAI-compatible /chat/completions routes under /v1.The API key or credential fails
The API key or credential fails
The model ID fails
The model ID fails
The workflow tries to generate images
The workflow tries to generate images
RAG returns no sources or weak answers
RAG returns no sources or weak answers
Upsert or vector store configuration fails
Upsert or vector store configuration fails
localhost will not be reachable from Flowise Cloud. Record Manager is optional, but if you enable it, configure its database connection separately.The request times out or is rate limited
The request times out or is rate limited

