Skip to content

Cohere

Cohere connects your flows to Cohere’s AI models. You can use it in two ways: as the model of an agent, by connecting its Model output to the agent’s Model input, or on its own, so that it answers the text that reaches its Input.

You choose the Cohere chat model in Model Name.

When to use it

  • Your company already works with Cohere and wants to use its account in NappAI.
  • Give an agent the model it uses to understand requests, decide which tools to use and answer.
  • Write, summarise or classify texts inside a flow, without an agent.

Configuration

In the Common tab:

FieldWhat it does
Credential (required)The credential of the service Cohere API, with your Cohere key. Pick one from the list (Choose an option) or create one with Add new credential. See Credentials.
Model NameThe Cohere chat model that answers. Choose it from the list or type the name of another Cohere chat model. Default: command-a-03-2025.
TemperatureHow varied the answers are: low values give steadier, more predictable answers; high values, more creative ones. 0 gives the most predictable answers; if you leave it empty, 0.75 is used. Default: 0.75.
ConnectionWhat to connect
InputThe text the model must answer when it works on its own, for example the message of a Chat Input or the result of a Prompt.

Advanced options

In the Advanced tab:

FieldWhat it does
System MessageGeneral instructions for the model when it works on its own: its role, the tone, what to avoid. You can type them or connect them from another component.
StreamShows the answer in the chat while it is being written, instead of waiting until it is finished. It only has an effect in the chat. Default: off.

Output

OutputWhat it contains
ModelThe configured model. It sits at the top of the component. Connect it to the Model input of an agent or of any other component that asks for a model.
TextThe model’s answer to the text received in Input. Connect it, for example, to a Chat Output or to another component that works with text.

The two ways of using it exclude each other: when you connect the Model output, the component hides Input and Text, because the model now works inside the other component; and if you connect Input, Model is hidden.

Example

The distributor Frutas del Valle wants to summarise every morning the delivery incidents it receives by email:

  1. Add Cohere and choose the company’s Cohere API credential.
  2. In System Message, type “Summarise the incidents in three points, stating the route and the affected customer”.
  3. Connect the text of the emails to Input and the Text output to the component that sends the summary to the logistics team.

Good practices

  • Use a low Temperature, such as 0.2, when you need exact answers, such as classifying or extracting data, and raise it for more creative texts.
  • If you use the model with an agent, configure only the model here: the instructions and the tools are set in the agent.