Initial concepts
So, what we can do with the Platform?
Register and login
First Steps - Creating your project
Profile
Permission System
Project Dashboard
Platform Glossary
Changing the Platform Language
2-Factor Authentication
Invalid authentication code
Artificial Intelligence
Human Attendance
Weni Chats: Introduction to the Chats module
Weni Chats: Human Service Dashboard
Weni Chats: Attendance distribution rule
Weni Chats: Using active triggering of flows
Using groups to organize human attendance
Studio
Contacts and Messages
Groups
Messages
Triggers and Campaigns
Adding a trigger
Triggers Types
Tell a flow to ignore triggers and keywords
Campaign introduction
How to create a Campaign
Editing events
Creating contact from an external Webhook
Contact history
How to Download and Extract Archived Data
Integrations
Settings
How to connect and talk to the bot through the settings
Adding a Facebook Channel
Adding a Viber channel
How to Create an SMS Channel - For Developers (RapidPro)
Web Chat Channel
General API concepts and Integrations
How to create a channel on twitter
How to create a channel on Instagram
How to create an SMS channel
Adding ticket creation fields in Zendesk
Adding Discord as a channel
Creating a Slack Channel
Adding a Viber channel (RapidPro)
Creating a Microsoft Teams channel
Weni Integrations
How to Use the Applications Module
How to Create a Web Channel
Adding a Telegram channel
How to create a channel with WhatsApp Demo
Whatsapp: Weni Express Integration
Whatsapp: How to create Template Messages
WhatsApp Template Messages: Impediments and Configurations
Supported Media Sending - WhatsApp Cloud
Zendesk - Human Support
Ticketer: Ticketer on Rapid Pro
Whatsapp Business API
Active message dispatch on WhatsApp
Whatsapp business API pricing
How to Verify My Business
Whatsapp Bussiness API: WhatsApp message triggering limitation
Regaining Access to Business Manager
Webhook Configuration: Message Delivery Status
The Basics of Integrations
Native ChatGPT Integration
Native Integration - VTEX
General settings
General Project Settings
Weni Chats: Setting Up Human Attendance
Weni Chats: Human Service Management
Flows
Expressions and Variables Introduction
Variables Glossary
Expressions Glossary
Flows Creation
Flows introduction
Flow editor and tools
Action cards
Zero Shot Learning
Decision cards
Adding Media to the message
Call Webhook: Making requests to external services
Import and export flows
Using expressions to capture the user's location
Viewing reports on the platform
Route markers
WhatsApp Message Card
UX Writing
Concepts
Good Practices for Chatbots Based on UX Writing
Hierarchy of information
Usability Heuristics for Chatbots
UX Text Standards
Weni CLI
- All Categories
- Weni CLI
- Tutorial: Your First Agent
- Tutorial: Creating a CEP Query Agent
Tutorial: Creating a CEP Query Agent
Updated
by José David
This tutorial will guide you step by step to create, understand, and deploy your first agent, an assistant that retrieves addresses from a Brazilian postal code (CEP).
Step 1: Set Up Your Project
First, you need to select which project in the Weni Platform you’ll be working on.
# List all projects you have access to
weni project list
# Select a project using its UUID
weni project use YOUR_PROJECT_UUID
# Verify that the correct project is selected
weni project current
Step 2: Create the Agent Structure with weni init
The init
command is the fastest way to get started. It creates all the necessary files with example code.
weni init
This command generates a folder structure like this:
.
├── agent_definition.yaml
└── tools/
└── get_address/
├── main.py
└── requirements.txt
Step 3: Understanding the Created Files
weni init
has generated two main components:
agent_definition.yaml
: This is the brain that defines what your agent is and what it can do. It contains its name, instructions, and the tools it uses.To learn more, check our complete guide on the Anatomy of an Agent#######.
tools/get_address
: Contains the Python code that performs the tool’s logic (querying the CEP API).For a deeper understanding, read our guide on Tools.########
Step 4: Deploy Your First Agent
Congratulations! You now have a functional agent. To deploy it to your project, simply run:
weni project push agent_definition.yaml
Your agent is now available on the Weni Platform, and you can find it in the Custom Agents section.