Blocks

Cohere

Enterprise-grade NLP and text generation AI

Integrate with Cohere for advanced natural language processing, text generation, embeddings, semantic search, and content classification. Perfect for enterprise RAG applications with API key authentication.

Back to Catalog
Toolscohere

Block Preview

Cohere

Enterprise-grade NLP and text generation AI

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Configure any required credentials or tokens in the inputs.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the cohere block with monitoring enabled in production.

Inputs (UI)

Cohere API Key

short-input

Placeholder: Enter your Cohere API key

Layout: full

Operation

dropdown

Layout: full

Options: Generate Text, Chat Completion, Create Embeddings, Classify Text

Model

dropdown

Layout: half

Condition: operation = ["generate","chat","summarize"]

Options: Command (Latest), Command Light, Command R, Command R+

Prompt

long-input

Placeholder: Enter your prompt or text to process

Layout: full

Condition: operation = ["generate","chat","classify","summarize","detect_language"]

Texts to Embed (JSON Array)

long-input

Placeholder: ["Text 1", "Text 2", "Text 3"]

Layout: full

Condition: operation = "embed"

Search Query

short-input

Placeholder: Enter search query for reranking

Layout: full

Condition: operation = "rerank"

Documents to Rerank (JSON Array)

long-input

Placeholder: [{"text": "doc1"}, {"text": "doc2"}]

Layout: full

Condition: operation = "rerank"

Max Tokens

short-input

Placeholder: 1000

Layout: half

Condition: operation = ["generate","chat","summarize"]

Temperature

short-input

Placeholder: 0.7

Layout: half

Condition: operation = ["generate","chat"]

Inputs (API)

credential

string

Required

operation

string

Required

model

string

Optional

prompt

string

Optional

texts

string

Optional

query

string

Optional

documents

string

Optional

max_tokens

string

Optional

temperature

string

Optional

Outputs

Primary response type:

{
  "data": "json"
}

Tool Access

cohere_api
Cohere | NowFlow Blocks