Prerequisites
Before you begin creating agents, ensure you have:Account & Access
- A StateSet account (Sign up here)
- API credentials from the StateSet Dashboard
- ResponseCX enabled in your workspace
Technical Setup
- Node.js 16+ installed on your development machine
- Basic understanding of REST APIs and JavaScript/TypeScript
- Text editor or IDE for code development
Domain Knowledge
- Understanding of conversational AI concepts and customer service workflows
- Access to your customer support systems (if planning integrations)
- Knowledge of your brand voice and customer interaction requirements
What are Agents?
In ResponseCX, an Agent is an autonomous conversational AI that can interact with your customers. You can customize its name, personality, and instructions to fit your business needs. Agents can be used in chat sessions to provide support, answer questions, and guide users.Creating an Agent
You can create an agent through the ResponseCX dashboard or using the SDK.Using the Dashboard
- Navigate to the Agents section of the ResponseCX dashboard.
- Click the Add New Agent button.
- Fill in the agent’s details:
- Name: A recognizable name for your agent (e.g., “Support Bot”).
- Description: A brief summary of the agent’s purpose.
- Type: The type of agent. For most use cases, you’ll use
Conversational AI Agent
. - Voice Model: The voice your agent will use for voice interactions.
Asteria
is a popular choice.
- Click Add Agent to save your new agent.
Using the SDK
Here’s how to create an agent using our SDKs with proper error handling:name
(string, required): The name of the agent.description
(string): A short description of the agent.type
(string): The type of agent.role
(string): The role you want the agent to adopt (e.g., “Customer Support Agent”).instructions
(string): Specific instructions for the agent on how to behave. This is where you define its personality and operational guidelines.goal
(string): The primary objective for the agent in conversations.voice_model
(string): The voice model for text-to-speech.
Managing Agents
You can view, update, and delete your agents.Listing Agents
Retrieve a list of all your agents with pagination support:Updating an Agent
You can update an agent’s properties in the dashboard or through the SDK.Using the Dashboard
- In the Agents list, click the Update button for the agent you want to modify.
- Change the desired fields in the agent editor.
- Click Save to apply the changes.
Using the SDK
Deleting an Agent
You can delete an agent from the dashboard or via the SDK. Deleting an agent is permanent and cannot be undone.Best Practices
1. Agent Instructions
Be specific and clear in your instructions:2. Error Handling
Always implement robust error handling:3. Monitoring Agent Performance
Track your agent’s effectiveness:Next Steps
Now that you’ve created an agent, you can start using it in your application. Here are some things you might want to do next:- Create a Chat: Learn how to initiate a chat session with your new agent.
- Explore advanced features: Dive into more complex agent capabilities like using functions and knowledge bases.