Trace the two inputs to a Flowise chain using CometAPI

If a Flowise chain appears to select the right CometAPI model but sends the wrong question, start with the two inputs to the chain—not temperature. The ChatCometAPI connection selects the model; the Prompt Template connection supplies what it is asked. A correct model selection is not proof that the prompt variables were mapped correctly.

CometAPI’s Flowise integration guide documents those connections separately. Here is a small way to reason through that recipe before adding retrieval, tools, or model comparisons.

Establish the CometAPI side first

You need access to a Flowise chatflow, an available ChatCometAPI node, and a CometAPI account with an API key. In the guide’s setup:

  • Attach the CometAPI credential to ChatCometAPI, keeping the key in Flowise Credentials rather than the prompt or node code.
  • Select the intended model on that node.
  • Under Additional Parameters, set Base Path to https://api.cometapi.com/v1/.

These are instructions from the guide, not a report of a tested installation. The article was published in September 2025 and retrieved on September 9, 2026; check the controls and available model choices in your installed version rather than assuming every label is unchanged.

Trace both inputs, not just the left-to-right line

The guide’s explicit wiring is:

ChatCometAPI ----------------------> LLM Chain: Language Model
Start/Input -> Prompt Template ----> LLM Chain: Prompt
                                    LLM Chain -> Output

The Start/Input value fills the template’s user_input variable. The chain combines that value with the template and sends the resulting prompt to CometAPI.

This is the useful distinction when debugging: changing a model setting on ChatCometAPI does not repair a missing connection to the chain’s Prompt input. Inspect the two branches independently.

Try a two-marker prompt check

The following is a proposed learning exercise, not a completed test or a guaranteed output:

  1. Keep the CometAPI model and generation settings fixed.
  2. Create a short template that asks the model to repeat the supplied user_input value. Use the variable syntax accepted by your installed Prompt Template node; do not assume the guide’s double-brace example works unchanged in every version.
  3. Supply a harmless marker such as orchid-17 through the flow’s input.
  4. Run the flow and inspect the resolved prompt intended for CometAPI using the inspection tools available in your version. The guide recommends inspecting the sent prompt during a dry run. Keep secrets and sensitive inputs out of diagnostic traces.
  5. Change only the input to cobalt-42 and inspect again.

Before judging the model’s answer, check whether the resolved prompt changed to contain the second marker. If it still contains the first marker, lacks the supplied value, or contains an unresolved variable placeholder, revisit the input mapping and template syntax. If the resolved prompt is correct but the answer is not, that observation does not establish a wiring fault; then investigate instructions and model behavior separately.

The point is to establish what this Flowise chain is asking CometAPI before tuning how the selected model answers. Which branch would you inspect first in your flow: the ChatCometAPI configuration or the resolved Prompt input?

A useful safety boundary here is to treat the resolved prompt as an auditable input, not just a debugging convenience. Before enabling retrieval, tools, or sensitive data, make the flow prove which value crossed from Start/Input into the Prompt Template and which final text was handed to the model.

The two-marker check can be strengthened with three controls:

  • Use benign, unique markers and assert that the expected marker appears exactly where the template intends; never use secrets or personal data as test fixtures.
  • Capture only a redacted prompt trace with a short retention period. If Flowise logs full prompts, disable or restrict that logging before testing production inputs.
  • Treat an unresolved placeholder, an unexpected prior marker, or a missing marker as a stop condition. Do not compensate by changing temperature, adding tools, or allowing a model to infer the missing value.

This also gives a clear review boundary: model choice and generation settings can be evaluated only after the input mapping is established. A correct resolved prompt still does not prove that tool permissions, retrieved context, or downstream handling are safe, so those should be checked as separate boundaries rather than folded into a single “the chain works” result.