AI Copilot
Transform your chatbot into an intelligent AI agent capable of performing complex tasks, executing code, integrating with APIs, and gathering real-time information.
Overview
AI Copilot transforms your chatbot from a simple Q&A assistant into an intelligent AI agent that can perform complex tasks, make decisions, and take real-time actions in your application.
With AI Copilot, your chatbot can:
- Automate complex workflows — perform multi-step tasks that require decision-making
- Execute code safely — run scripts, calculations, and data analysis
- Integrate with external services — connect to APIs, payment processors, CRMs, and more
- Gather real-time information — search the web, fetch live data, and verify sources
Agent Mode Required
AI Copilot features are only available when Agent Mode is enabled in your YourGPT Dashboard. Make sure to enable Agent Mode before using these capabilities.
AI Copilot is powered by the @yourgpt/widget-web-sdk package, which provides programmatic control over your chatbot's advanced capabilities.
What You Can Build
AI Copilot gives you four powerful tools to build intelligent, action-taking chatbots:
AI Actions
Build custom functions that your chatbot can trigger based on user requests. AI Actions let your chatbot perform real operations in your application.
What you can build:
- User account creation — automatically create accounts with user confirmation
- File operations — upload, download, delete, or organize files
- Data processing — transform, analyze, or export user data
- Form submissions — submit forms, create tickets, or register events
- Content management — create, update, or publish content
- Workflow automation — trigger multi-step business processes
Example capabilities:
// Your chatbot can trigger actions like:
- Create user account with email verification
- Process payment with confirmation dialog
- Schedule appointment and send calendar invite
- Generate report and email it to user
- Update CRM record with conversation contextCode Execution
Build applications where your chatbot can safely execute code to perform calculations, analyze data, or generate dynamic content.
What you can build:
- Data analysis tools — run statistical analysis, generate charts, process datasets
- Calculation engines — perform complex calculations, financial modeling, unit conversions
- Dynamic content generation — create personalized content, generate reports, build visualizations
- Testing environments — validate code snippets, test algorithms, debug scripts
- Data transformation — convert formats, clean data, merge datasets
Example capabilities:
// Your chatbot can execute code to:
- Analyze sales data and generate insights
- Calculate loan payments with different interest rates
- Generate personalized email templates
- Process CSV files and create summaries
- Run data validation scriptsAPI Integration
Build integrations that connect your chatbot to external services, enabling it to interact with the broader ecosystem of tools and platforms.
What you can build:
- Payment processing — integrate with Stripe, PayPal, or other payment gateways
- CRM updates — sync conversations to Salesforce, HubSpot, or custom CRMs
- Email services — send emails via SendGrid, Mailchimp, or SMTP
- Third-party APIs — connect to weather services, stock APIs, translation services
- Webhook triggers — trigger external workflows, notify systems, update databases
- Authentication — verify users, check permissions, manage sessions
Example capabilities:
// Your chatbot can integrate with:
- Payment gateways for checkout flows
- CRM systems to update customer records
- Email services to send notifications
- Calendar APIs to schedule meetings
- Inventory systems to check stock levelsWeb Search
Build features that enable your chatbot to gather real-time information from the internet, keeping responses current and accurate.
What you can build:
- Live data fetching — get current prices, weather, news, or stock information
- Content summarization — fetch and summarize articles, research papers, or documentation
- Source verification — verify facts, check citations, validate claims
- Research assistance — gather information from multiple sources and synthesize insights
- Trend analysis — track current trends, monitor social media, analyze market data
Example capabilities:
// Your chatbot can search the web to:
- Get current weather for any location
- Find latest product reviews and prices
- Research topics and provide citations
- Verify news articles and fact-check claims
- Gather competitive intelligenceExamples & Use Cases
See how developers are using AI Copilot to build intelligent, action-taking experiences:
1. Ecommerce Copilot
Instant Product Discovery
Help customers find exactly what they're looking for through natural conversation. The AI understands product queries and guides users to the right items instantly.
Streamlined Checkout
Reduce cart abandonment by enabling customers to complete purchases in one conversational flow—no more multi-step checkout forms.
View Example
See the complete implementation in our Shopify Copilot Example.
2. Travel & Booking Copilot
Conversational Search
Let users search for accommodations using natural language like "find a budget hotel in Bali" and get personalized recommendations instantly.
One-Step Booking
Complete the entire booking process through conversation—from search to confirmation—without navigating complex booking forms.
View Example
See the complete implementation in our Travel Copilot Example.
3. Productivity Copilot
AI-Powered Task Management
Enable users to manage tasks through simple commands like "Add a task" or "Mark task as complete" with instant UI updates.
Dynamic UI Customization
Let users customize their experience through AI commands—change themes, adjust settings, or toggle features without clicking through menus.
View Example
See the complete implementation in our Todo List Copilot Example.
4. Website Navigation Copilot
Instant Answers
Provide immediate answers to common questions like "What are your pricing plans?" or "How does this feature work?" without users having to search.
Smart Redirection
Intelligently guide users to relevant sections—when they ask "Show me the documentation," the AI takes them directly to the right page.
View Example
Explore more examples in our GitHub repository.
Resources
To start building with AI Copilot, explore these resources:
- @yourgpt/widget-web-sdk — The npm package that powers AI Copilot capabilities
- GitHub Repository — Source code, examples, and detailed documentation
- Web SDK Documentation — Complete guide to using the Web SDK
- Discord Community — Get help, share examples, and connect with other developers
Ready to Get Started?
For installation and setup instructions, see the Web SDK Installation Guide. This guide focuses on what you can build—check the installation docs when you're ready to implement.