Blocks

Customer Service Agent

Specialized customer support agent

Create a specialized customer service agent that can handle support tickets, analyze sentiment, categorize issues, and provide appropriate responses with escalation recommendations.

Back to Catalog
Agentscustomer_service_agent

Block Preview

Customer Service Agent

Specialized customer support agent

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 customer_service_agent block with monitoring enabled in production.

Inputs (UI)

System Prompt

long-input

Placeholder: You are a professional customer service agent. Always be helpful, empathetic, and solution-focused...

Layout: full

Customer Message

long-input

Placeholder: Enter the customer message or support ticket...

Layout: full

Customer Context

long-input

Placeholder: Enter customer history, account info, previous interactions...

Layout: full

Model

dropdown

Layout: half

Options: Dynamic options

Temperature

slider

Layout: half

API Key

short-input

Placeholder: Enter your API key

Layout: full

Condition: model = ["qwen2.5:0.5b","qwen2.5:1.5b","qwen2.5:3b","llama3.2:1b","llama3.2:3b","phi3.5:3.8b"]

Knowledge Base

long-input

Placeholder: Enter company policies, FAQ, product information...

Layout: full

Knowledge Sources

knowledge-source-input

Layout: full

Max Search Results

slider

Layout: half

Condition: knowledgeSources = ""

Similarity Threshold

slider

Layout: half

Condition: knowledgeSources = ""

Escalation Rules

code

Placeholder: { "keywords": ["refund", "cancel", "angry", "lawsuit", "complaint"], "sentimentThreshold": "negative", "priorityThreshold": "high", "autoEscalate": true }

Layout: full

Agent Type

dropdown

Layout: half

Options: None (Default), Chatbot, Customer Assistant, HR Agent

Response Style

dropdown

Layout: half

Options: Professional, Friendly, Empathetic, Concise

Include Analysis

switch

Layout: half

Tools

tool-input

Layout: full

Response Format

code

Placeholder: { "type": "object", "properties": { "content": {"type": "string"}, "sentiment": {"type": "string", "enum": ["positive", "neutral", "negative"]}, "priority": {"type": "string", "enum": ["low", "medium", "high", "urgent"]}, "category": {"type": "string"}, "suggestedActions": {"type": "array", "items": {"type": "string"}}, "escalationRequired": {"type": "boolean"} } }

Layout: full

Enable Memory

switch

Layout: half

Memory Limit

slider

Layout: half

Condition: memoryEnabled = true

Importance Threshold

slider

Layout: half

Condition: memoryEnabled = true

Memory Tags

short-input

Placeholder: customer-support, billing, technical

Layout: half

Condition: memoryEnabled = true

Inputs (API)

systemPrompt

string

Optional

customerMessage

string

Required

customerContext

string

Optional

model

string

Required

apiKey

string

Required

temperature

number

Optional

agentType

string

Optional

knowledgeBase

string

Optional

knowledgeSources

string

Optional

searchMaxResults

number

Optional

similarityThreshold

number

Optional

escalationRules

json

Optional

responseStyle

string

Optional

includeAnalysis

boolean

Optional

tools

json

Optional

responseFormat

json

Optional

memoryEnabled

boolean

Optional

memoryLimit

number

Optional

memoryImportance

number

Optional

memoryTags

string

Optional

Outputs

Primary response type:

{
  "content": "string",
  "model": "string",
  "sentiment": "string",
  "priority": "string",
  "category": "string",
  "suggestedActions": "json",
  "escalationRequired": "boolean",
  "tokens": "json"
}

Conditional output based on: responseFormat

When empty: {"content":"string","model":"string","sentiment":"string","priority":"string","category":"string","suggestedActions":"json","escalationRequired":"boolean","tokens":"json"} | When filled: "json"

Tool Access

hubspot_contactssalesforce_opportunitiesslack_messagegmail_sendtext_processor
Customer Service Agent | NowFlow Blocks