Quickstart
Getting Started with Copilotz
Welcome to Copilotz! This guide will walk you through the steps to set up your first Copilotz agent and integrate it with WhatsApp. By the end of this guide, you will have an AI-powered agent up and running, ready to respond to WhatsApp messages using your APIs.
Step 1: Sign Up and Get Your API Key
To get started, you’ll need to sign up for an account and retrieve your API key. Follow these steps:
- Go to the Copilotz landing page.
- Click the Getting Started button at the top of the page. This will guide you through the account creation process.
- After signing up, you’ll receive an access token (API key), which you’ll need to authenticate your API calls.
- Your Copilotz account will automatically have access to the free sandbox environment, where you can test your integrations using a default WhatsApp number provided by Copilotz (extId:
ABC123
).
Note: If you’re on the free tier, you can use the provided WhatsApp sandbox number for testing. To link your own WhatsApp number for production, you will need to subscribe to a paid plan.
Step 2: Set Up WhatsApp Integration
Once you’ve signed up and obtained your API key, it’s time to connect your Copilotz agent to WhatsApp.
Free Tier (Testing with Copilotz WhatsApp Number)
In the free tier, you can use Copilotz’s default WhatsApp number to test your integration:
- Upon completing the “Getting Started” process, a channel resource is automatically created. This channel links a WhatsApp hook to the Copilotz testing number (extId:
ABC123
). - Use the
channels
resource to manage this test channel and set up the allowList property to control which users can send messages to this number.
Example API call to update the allowList for your testing channel:
Now, any phone number added to the allowList can send and receive messages to/from the testing WhatsApp number (ABC123
).
Paid Plan (Connecting Your Own WhatsApp Number)
If you’ve subscribed to a paid plan, you can link your own WhatsApp number to Copilotz. Here’s how:
- Click the “Connect WhatsApp” button on the landing page or within the dashboard.
- This will guide you through the process of registering your WhatsApp number.
- During this process, another channel resource will be created, linking your registered WhatsApp number to a WhatsApp hook and callback in Copilotz.
- After setup, your WhatsApp number is ready to receive messages through Copilotz agents.
Example API call to view the channel associated with your WhatsApp number:
Step 3: Create Your First Copilotz Agent
Once WhatsApp is set up, it’s time to create your first Copilotz agent. This agent can be a transcriber, chatbot, task manager, or function call handler.
Here’s how to create a simple Chat agent:
- Use the Copilotz resource to create a new agent. This agent will interact with users over WhatsApp, responding to messages and performing actions.
Example API call to create a Copilotz agent:
Key Agent Types:
- Transcriber: Transcribes audio messages into text.
- Chat: Maintains conversation context, useful for chatbots.
- Function Call: Executes API requests or custom functions.
- Task Manager: Manages workflows with multiple steps and tasks.
Note: You can configure workflows for Task Manager agents, allowing them to follow specific steps to complete tasks. More details can be found in the Workflows section.
Step 4: Create an Action
Actions define what your Copilotz agents can do. For example, a Function Call agent might execute an API request or a Chat agent might send a pre-defined response to a user’s query.
Example API call to create an action:
Step 5: Test in Sandbox Environment
Before moving to production, it’s important to test your setup. Copilotz provides a sandbox environment where you can interact with your agents using the provided test WhatsApp number (ABC123
).
To test:
- Use the allowList to add your phone number to the test channel.
- Send a WhatsApp message to the test number.
- Your Copilotz agent will process the message and respond based on the actions you’ve configured.
Step 6: Move to Production
When you’re ready to go live with your own WhatsApp number, simply upgrade to a paid plan. Your existing agents and workflows can be linked to your production WhatsApp number, allowing you to start handling real user interactions.
Next Steps
Now that you have a basic understanding of how to get started with Copilotz, explore the following sections for more advanced topics:
- Workflows: Learn how to define and manage multi-step workflows for your agents.
- Tasks: Understand how tasks are managed and progressed through workflows.
- Actions: Explore how to create custom actions and integrate with external APIs using OpenAPI specs.
For any additional questions or troubleshooting, visit our FAQ or support pages.