Documentation

AyAgent Documentation

Learn how to integrate and use AyAgent to automate your business communications with AI

Quick Setup

Get your AI agents up and running in minutes with our easy-to-use dashboard

Multiple Channels

Connect with your customers through WhatsApp, Email, Live Chat and more

API Integration

Integrate AyAgent with your existing systems using our comprehensive API

Introduction

AyAgent is an AI-powered platform that helps businesses automate their customer communications across multiple channels. With AyAgent, you can create intelligent agents that understand customer inquiries, provide helpful responses, and handle routine tasks automatically.

This documentation will guide you through setting up and using AyAgent, from creating your first agent to implementing advanced automation workflows for your business communication needs.

New to AI agents?

If you're new to AI agents and customer service automation, we recommend starting with our Quick Start guide to get familiar with the basic concepts before diving into the more advanced features.

Key Features

  • Natural Language Understanding - AyAgent understands customer inquiries and responds appropriately, even handling complex conversations.
  • Multi-Channel Support - Connect with your customers on WhatsApp, Email, Live Chat, and more from a single platform.
  • Custom Training - Train your agents with your specific business knowledge for accurate and relevant responses.
  • Analytics & Insights - Track performance and gain valuable insights from customer interactions.
  • Human Handoff - Seamlessly transfer conversations to human agents when needed.

Quick Start

Get started with AyAgent in minutes by following these simple steps

Follow these steps to set up your first AI agent and connect it to a communication channel:

1
Create Account

Sign up for an AyAgent account to access the dashboard

2
Create Agent

Create your first AI agent and select a template to customize it

3
Connect Channel

Connect WhatsApp, Email or other channels to your agent

Once you've completed these steps, your AI agent will be ready to interact with your customers. You can customize its behavior, train it with your data, and monitor its performance from the dashboard.

Creating Your First Agent

After signing in to your account, navigate to the Agents section and click on "Create New Agent." You'll be presented with several template options to choose from based on your business needs:

  • Customer Support Agent - Handles frequently asked questions and basic support inquiries
  • Lead Generation Agent - Qualifies leads and collects contact information
  • Appointment Scheduling Agent - Books appointments and sends reminders
  • Order Processing Agent - Processes orders and provides order status updates

Select the template that best matches your use case and give your agent a name. You can then proceed to customize its responses and behavior.

Installation

Cloud-based

AyAgent is a cloud-based platform that doesn't require any installation. Simply sign up for an account and you can start using it right away through your web browser.

If you want to integrate AyAgent with your existing systems, you can use our API or SDKs:

bash
curl -X POST https://api.ayagent.com/v1/agents \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Support Agent", "template_id": "t_123456"}'

System Requirements

Since AyAgent is a cloud-based platform, you only need:

  • A modern web browser (Chrome, Firefox, Safari, or Edge)
  • Internet connection
  • For WhatsApp integration: A WhatsApp Business account or personal WhatsApp account

Agents

Learn about AI agents and how they work in the AyAgent platform

Agents are the core of the AyAgent platform. An agent is an AI-powered entity that can interact with your customers through various communication channels.

Agent Capabilities

AyAgent's AI agents are equipped with advanced capabilities that make them powerful tools for customer communication:

Agent Capabilities Overview

Creating an Agent

  • Navigate to Dashboard → Create Agent
  • Provide a name and description
  • Select a template to use
  • Connect communication channels

Agent Capabilities

  • Understand natural language
  • Follow conversation flows
  • Access knowledge bases
  • Create tickets and update records
  • Hand off to human agents

Training Your Agent

To get the most out of your agents, make sure to provide them with accurate information about your business, products, and services. The more information you provide, the better your agents will be able to assist your customers.

You can train your agent by:

  • Uploading knowledge base documents
  • Creating FAQ pairs
  • Providing sample conversations
  • Connecting to your product database

AyAgent uses advanced machine learning techniques to understand your data and use it to generate accurate responses to customer inquiries.

Templates

Templates define how your agents behave and respond to different situations. AyAgent provides pre-built templates for common use cases, or you can create custom templates.

Pre-built Templates
Ready-to-use templates for common use cases
  • Customer Support
  • Lead Generation
  • Appointment Scheduling
  • Order Processing
  • FAQ Assistant
Custom Templates
Create your own templates from scratch
  1. Go to Templates in your dashboard
  2. Click "Create Template"
  3. Define conversation flows
  4. Add knowledge base connections
  5. Configure actions and integrations

Using Templates Effectively

When selecting a template for your agent, consider the following:

  • Primary use case: Choose a template that aligns with your main goal
  • Industry specifics: Some templates are tailored for specific industries
  • Customization needs: Consider how much you'll need to modify the template

Once you've selected a template, you can customize it by editing conversation flows, adding your own knowledge base, and configuring integration with your existing systems.

Knowledge Base

New

The knowledge base is a central repository of information that your agents can access to provide accurate responses to customer inquiries.

Why knowledge bases matter

A well-maintained knowledge base is essential for your agents to provide accurate and consistent information. The more comprehensive your knowledge base, the better your agents will perform.

Supported Content Types

AyAgent's knowledge base supports various content types:

  • Documents - PDF, Word, and text files
  • FAQs - Question and answer pairs
  • URLs - Web pages that contain relevant information
  • Product information - Details about your products or services

Creating a Knowledge Base

To create a knowledge base:

  1. Navigate to the Knowledge Base section in your dashboard
  2. Click "Create Knowledge Base" and give it a name
  3. Upload documents or add content manually
  4. Organize your content into categories for better management

Once your knowledge base is created, you can connect it to your agents to enhance their capabilities.

javascript
// Connect a knowledge base to an agent using the JavaScript SDK
const knowledgeBase = await ayagent.knowledgeBases.create({
  name: 'Product Information',
  description: 'Contains information about our products and services'
});

// Upload a document to the knowledge base
await ayagent.knowledgeBases.uploadDocument(knowledgeBase.id, {
  file: fs.createReadStream('product_catalog.pdf'),
  fileName: 'product_catalog.pdf'
});

// Connect the knowledge base to an agent
await ayagent.agents.update(agentId, {
  knowledgeBaseIds: [knowledgeBase.id]
});

API Authentication

AyAgent provides a RESTful API that allows you to integrate the platform with your existing systems. To use the API, you'll need to authenticate your requests using an API key.

Obtaining an API Key

To get an API key:

  1. Log in to your AyAgent account
  2. Go to Settings → API Keys
  3. Click "Create API Key" and provide a name for the key
  4. Copy the API key and store it securely
Security Notice

Your API keys carry many privileges, so be sure to keep them secure. Don't share your API keys in publicly accessible areas such as GitHub, client-side code, or in API requests over unencrypted connections.

Using the API Key

To authenticate your API requests, include your API key in the Authorization header of your requests:

bash
curl -X GET https://api.ayagent.com/v1/agents \
  -H "Authorization: Bearer YOUR_API_KEY"

Replace YOUR_API_KEY with your actual API key.

API Rate Limits

To ensure fair usage of the API, we enforce rate limits based on your subscription plan:

  • Free Plan: 100 requests per minute
  • Standard Plan: 500 requests per minute
  • Enterprise Plan: Custom limits based on your needs

If you exceed your rate limit, you'll receive a 429 Too Many Requests response. The response will include headers indicating your current rate limit status.

Credentials

Connect communication channels to your AyAgent platform

Credentials in AyAgent allow you to connect your agents to various communication channels such as WhatsApp, Email, or Live Chat.

For a detailed guide on setting up and managing credentials, see the Credentials documentation.

Available Channels

AyAgent currently supports the following channels:

  • WhatsApp - Connect your WhatsApp Business account
  • Email - Set up email communication for your agents
  • Live Chat - Embed live chat on your website
  • Telegram - Connect with customers through Telegram
  • SMS - Send and receive text messages