Back to Blog
CTO (Chief Technology Officer)

Building Your First AI Agent: Step-by-Step Guide with Craveva AI Enterprise

Complete walkthrough for building your first AI agent with **Craveva AI Enterprise**. From setup to deployment, learn how to create intelligent agents that transform your F&B operations using **Craveva AI Enterprise**.

Craveva AI Enterprise Team · Oct 10, 2025 · 12 min read
Supported today (auto-updated)
Deployments
  • Web widget (JavaScript embed)
  • WhatsApp Business
  • E-commerce: Shopify, WordPress, WooCommerce, Magento, BigCommerce
Data sources & integrations
  • Offline files + Google Drive
  • Databases: PostgreSQL, MySQL, MongoDB, BigQuery, Snowflake, Redshift, Athena, ClickHouse, Trino, SQL Server, Oracle, DuckDB
  • Online APIs: REST, GraphQL, Webhook
  • POS (Singapore): Qashier, Eats365 (others appear in roadmap/partials)
Note: Some connectors may exist as base classes/framework but are not yet available as production deployments.

Founder Summary

  • Audience: CXOs and founders running catering, franchise groups, casual dining, cloud kitchens.
  • Core outcomes (what moves the business):
  • Operational consistency: standardize execution across outlets using Craveva AI Enterprise agents + data layer.
  • Cost savings: reduce waste and procurement errors, automate purchasing cycles with Craveva AI Enterprise.
  • Sales lift: increase AOV and conversion with Craveva AI Enterprise sales agents on web/WhatsApp/kiosks.
  • Time savings: remove manual exports, reporting, and SOP Q&A with Craveva AI Enterprise automation.

Platform flow (high level)

  • Deployment layer: deploy agents to WhatsApp, web widget, kiosks, or internal tools with Craveva AI Enterprise.
  • AI layer: agents query and act on governed data (no fragile spreadsheet workflows) in Craveva AI Enterprise.
  • Data layer: connect POS, databases, Google Drive, and APIs into a unified view inside Craveva AI Enterprise.

Operating Model (how teams run it)

  • Ops defines workflows (ordering, inventory alerts, SOP answers, customer responses) in Craveva AI Enterprise.
  • Finance sets guardrails (approval thresholds, budgets, audit trail) in Craveva AI Enterprise.
  • IT connects data sources once; rollout scales outlet-by-outlet via Craveva AI Enterprise multi-outlet deployment.
  • Leadership tracks KPI movement weekly and expands successful automations with Craveva AI Enterprise.

Setup (30–60 minutes to first value)

  • Deploy to the workflow: WhatsApp/web/kiosk/internal portal using Craveva AI Enterprise.
  • Measure ROI and operational impact, then replicate across brands/outlets with Craveva AI Enterprise.
  • Connect data sources (POS + databases + Drive + APIs) in Craveva AI Enterprise.
  • Start with 2–3 agents: Procurement (cost), Sales (revenue), Analytics (visibility) in Craveva AI Enterprise.

CXO KPIs

  • PO approval turnaround and exception rate
  • Peak-hour conversion vs queue time
  • Training completion rate and knowledge check scores
  • Ingredient substitution rate and margin impact
  • Expedite frequency and cost (urgent orders)

Explore the Platform

  • Architecture: /solutions/architecture
  • Deployment: /solutions/deployment
  • Documentation: /documentation
  • Models: /ai-models
  • Templates: /templates

Introduction

Building your first AI agent with Craveva AI Enterprise is straightforward thanks to the AI-Assisted Agent Builder, which automatically detects entity relationships, maps data, and generates prompts. This guide walks you through creating a customer service agent step-by-step, but the same process applies to any agent type.

Prerequisites

Before starting:

  • Craveva AI Enterprise account (sign up at platform)
  • Data source ready (optional but recommended): POS system, database, or Google Drive
  • Clear use case: Know what you want the agent to do
  • 5-10 minutes: First agent takes just minutes to build

Step 1: Define Your Use Case

Start with a clear objective. For this example, we'll build a Customer Service Agent that:

  • Answers customer questions about menu items
  • Tracks orders
  • Handles common FAQs
  • Processes refund requests

Success Metrics:

  • Response time < 2 seconds
  • 90%+ accuracy on common questions
  • Customer satisfaction > 4.5/5

Step 2: Connect Data Sources

Before building the agent, connect your data sources:

  1. Navigate to Data Sources: Click "Data Sources" in dashboard
  2. Add Data Source: Click "Add Data Source"
  3. Select Type: Choose from:
    • POS Systems: Qashier, Eats365, Raptor, Micros, Toast, Lightspeed, StoreHub, MEGAPOS
    • Databases: 12 types supported - PostgreSQL, MySQL, MongoDB, BigQuery, Snowflake, Redshift, Athena, ClickHouse, Trino, SQL Server, Oracle, DuckDB
    • APIs: REST API, GraphQL API
    • Google Drive: Connect Google Drive/Google Docs
    • Files: Upload CSV, Excel, PDF, JSON files
  4. Enter Credentials: Provide connection details
  5. Test Connection: Platform validates automatically
  6. Save: Connection saved for use by agents

For Customer Service Agent: Connect your POS system (Qashier) to access menu items, prices, and order history.

Time: 5-10 minutes

Step 3: Create Agent with AI-Assisted Builder

  1. Navigate to Agent Builder: Click "Create Agent" in dashboard
  2. Select Template (Optional): Choose "AI Customer Service Agent" template, or start from scratch
  3. Enter Agent Details:
    • Name: "Customer Service Agent"
    • Description: "Handles customer inquiries, order tracking, and FAQs"
    • Category: Customer Service
  4. Enable AI Mode: Toggle "AI-Assisted Builder" ON
  5. Select Data Sources: Choose your connected data sources (Qashier POS)
  6. Click "Create": AI-Assisted Builder starts automatic configuration

Step 4: AI-Assisted Automatic Configuration

Loading diagram...

The AI-Assisted Agent Builder automatically:

  1. Detects Entity Relationships: Analyzes your data to find products, orders, customers, etc.
  2. Maps Data Entities: Maps product names, prices, order IDs to standard formats
  3. Generates Prompts: Creates system prompts for customer service tasks
  4. Creates MDL: Generates Modeling Definition Language for data access
  5. Configures Capabilities: Sets up order tracking, FAQ answering, refund processing

Time: 1-2 minutes (automatic)

Step 5: Configure AI Model

Craveva AI Enterprise provides 342+ AI models via Craveva LLM Router:

  1. Model Selection: Choose from dropdown:
    • Recommended: Claude 3 Sonnet (excellent for customer service)
    • Cost-Effective: Claude 3 Haiku (for high volume)
    • Premium: GPT-4 Turbo (for complex queries)
  2. Auto-Routing (Optional): Enable automatic model routing based on task complexity
  3. Custom Configuration: Override auto-routing if needed

For Customer Service: Claude 3 Sonnet recommended for best dialogue quality.

Step 6: Test with Live Preview

Craveva AI Enterprise provides Live Preview for testing:

  1. Open Live Preview: Click "Test Agent" button
  2. Try Sample Queries:
    • "What's on the menu today?"
    • "Track my order #12345"
    • "What are your opening hours?"
    • "I want a refund for order #12345"
  3. Review Responses: Check accuracy and relevance
  4. Iterate: Adjust prompts or data mappings if needed

Time: 5-10 minutes of testing

Step 7: Deploy Agent

Deploy your agent to any platform:

Option 1: WhatsApp Business API

  1. Navigate to Deployments: Click "Deployments" section
  2. Select WhatsApp: Choose WhatsApp Business
  3. Enter Credentials:
    • Business Account ID
    • API Access Token
    • Phone Number ID
    • Webhook Verify Token
  4. Test Connection: Verify credentials
  5. Deploy: One-click activation

Time: 5 minutes

Option 2: Website Widget

  1. Navigate to Deployments: Click "Deployments"
  2. Select Website Widget: Choose widget deployment
  3. Copy Code: Platform generates code in 6 formats:
    • JavaScript
    • TypeScript
    • React
    • Vue
    • Svelte
    • Angular
  4. Embed in Website: Paste code into your website
  5. Test: Agent appears as chat widget

Time: 2 minutes

Option 3: Custom Integration

  1. Get API Endpoint: Platform provides agent API endpoint
  2. Integrate: Use endpoint in your custom system
  3. Test: Verify integration works

Step 8: Monitor and Optimize

Monitor agent performance:

  1. Analytics Dashboard: View real-time metrics:
    • Usage: Number of queries, response times
    • Performance: Accuracy, customer satisfaction
    • Costs: AI model usage costs
    • Errors: Failed queries, issues
  2. User Feedback: Collect feedback from customers
  3. Optimize: Adjust prompts, data mappings, or model selection based on data
  4. Iterate: Continuously improve based on performance

Complete Example: Customer Service Agent

Setup (15 minutes):

  1. Connected Qashier POS system (5 min)
  2. Created agent with AI-Assisted Builder (2 min)
  3. Selected Claude 3 Sonnet model (1 min)
  4. Tested with Live Preview (5 min)
  5. Deployed to WhatsApp (2 min)

Results (after 1 month):

  • 500+ queries/day handled automatically
  • < 2 second average response time
  • 92% accuracy on common questions
  • 4.6/5 customer satisfaction
  • $336K annual savings (10 outlets) from reduced staff time

Best Practices

  1. Start Simple: Begin with basic capabilities, add features gradually
  2. Test Thoroughly: Use Live Preview to test before deployment
  3. Monitor Closely: Check analytics daily for first week
  4. Iterate Based on Data: Use performance data to improve
  5. Use Templates: Start with templates, customize as needed

Common Mistakes to Avoid

  1. Over-Complicating: Start with simple use case, expand later
  2. Insufficient Testing: Test thoroughly before going live
  3. Poor Data Quality: Ensure data sources are accurate and up-to-date
  4. Ignoring Analytics: Monitor performance and optimize continuously
  5. Wrong Model Selection: Use recommended models for your use case

Next Steps

Once your first agent is working:

  1. Build More Agents: Create AI Sales Agent, AI Procurement Assistant, etc.
  2. Connect More Data: Add databases, APIs, Google Drive
  3. Deploy to More Platforms: Add Messenger, Telegram, websites
  4. Scale: Deploy to multiple outlets
  5. Optimize: Continuously improve based on data

Conclusion

Craveva AI Enterprise makes building AI agents accessible to everyone. The AI-Assisted Agent Builder automatically handles data mapping, prompt generation, and configuration, reducing setup time from hours to minutes. With Live Preview for testing, one-click deployment to any platform, and comprehensive analytics, you can build, test, and deploy your first agent in under 20 minutes. Start with a simple use case, test thoroughly, and iterate based on performance data to create powerful AI agents that transform your F&B operations.

KPIs to track

MetricArea
Peak-hour conversion vs queue timeSales
Ingredient substitution rate and margin impactOther
Expedite frequency and cost (urgent orders)Other
PO approval turnaround and exception rateProcurement
Critical incidents: downtime minutes and recovery timeOther
Support tickets per outlet and handle timeOther

Connect Now: AI Enterprise Consultants

Ready to transform your F&B operations with Craveva AI Enterprise? Book a meeting with our AI Enterprise Consultants to discuss how we can help your business.

Technical Glossary

Artificial Intelligence (AI)

AI/ML

The simulation of human intelligence in machines that are programmed to think and learn like humans. In F&B, AI is used to automate decisions, analyze data, and provide insights.

Machine Learning (ML)

AI/ML

A subset of AI that enables systems to learn and improve from experience without being explicitly programmed. ML algorithms identify patterns in data to make predictions or decisions.

Large Language Model (LLM)

AI/ML

Advanced AI models trained on vast amounts of text data that can understand and generate human-like text. Used in chatbots, content generation, and natural language processing.

RAG (Retrieval-Augmented Generation)

AI/ML

An AI technique that combines information retrieval with text generation. RAG systems retrieve relevant information from a knowledge base and use it to generate accurate, context-aware responses.

AI Agents

AI/ML

Autonomous software programs that use AI to perform tasks, make decisions, and interact with systems. In F&B, agents can automate customer service, procurement, inventory management, and more.

Embeddings

AI/ML

Numerical representations of text, images, or other data that capture semantic meaning. Embeddings enable AI systems to understand relationships and similarities between different pieces of information.

Vector Database

AI/ML

A specialized database designed to store and query high-dimensional vectors (embeddings). Used in RAG systems to quickly find relevant information based on semantic similarity.

Neural Networks

AI/ML

Computing systems inspired by biological neural networks. They consist of interconnected nodes (neurons) that process information and learn patterns from data.

Natural Language Processing (NLP)

AI/ML

A branch of AI that enables computers to understand, interpret, and generate human language. Used in chatbots, sentiment analysis, and text analysis.

Deep Learning

AI/ML

A subset of machine learning that uses neural networks with multiple layers to learn complex patterns in data. Particularly effective for image recognition, speech recognition, and natural language processing.

Data Centralization

Data

The process of consolidating data from multiple sources (POS systems, databases, files, APIs) into a single unified platform. Essential for AI systems to work effectively with all business data.

Data Integration

Data

The process of combining data from different sources into a unified view. Enables businesses to access and analyze all their data in one place.

ETL (Extract, Transform, Load)

Data

A data integration process that extracts data from source systems, transforms it to fit business needs, and loads it into a target database or data warehouse.

Data Warehouse

Data

A centralized repository that stores integrated data from multiple sources. Designed for querying and analysis rather than transaction processing.

API (Application Programming Interface)

Data

A set of protocols and tools that allows different software applications to communicate and share data. APIs enable integration between systems.

Database

Data

An organized collection of data stored and accessed electronically. Common types include relational databases (PostgreSQL, MySQL) and NoSQL databases (MongoDB).

Data Pipeline

Data

A series of data processing steps that move data from source systems to destination systems, often with transformations along the way.

Data Governance

Data

The overall management of data availability, usability, integrity, and security. Ensures data quality and compliance with regulations.

Data Quality

Data

The measure of data's fitness for its intended use. High-quality data is accurate, complete, consistent, and timely.

Business Intelligence (BI)

Data

Technologies and strategies used to analyze business data and provide actionable insights. Includes reporting, analytics, and data visualization.

POS (Point of Sale)

Operations

The system where customers complete transactions. POS systems record sales, manage inventory, process payments, and generate receipts. Examples include Qashier, Eats365, and Dinlr.

Inventory Management

Operations

The process of ordering, storing, and using inventory. Effective inventory management ensures the right products are available at the right time while minimizing waste and costs.

Supply Chain

Operations

The network of organizations, people, activities, and resources involved in moving products from suppliers to customers. Includes procurement, logistics, and distribution.

Procurement

Operations

The process of finding, acquiring, and managing goods and services needed for business operations. Includes supplier selection, negotiation, and purchase order management.

Food Cost

F&B

The cost of ingredients used to prepare menu items. Food cost percentage is calculated as (cost of ingredients / menu price) × 100. A key metric for profitability.

Labor Cost

F&B

The total cost of employee wages, benefits, and related expenses. Labor cost percentage is calculated as (total labor cost / total revenue) × 100.

Menu Engineering

F&B

The analysis of menu items based on profitability and popularity. Helps restaurants optimize menu offerings to maximize revenue and profit.

Average Order Value (AOV)

F&B

The average amount spent per customer transaction. Calculated as total revenue divided by number of orders. Increasing AOV is a key revenue growth strategy.

Customer Lifetime Value (CLV)

F&B

The total revenue a business can expect from a single customer over their entire relationship. Helps prioritize customer retention and acquisition strategies.

Waste Reduction

Operations

Strategies and processes to minimize food waste, inventory spoilage, and operational inefficiencies. Reduces costs and improves sustainability.

Cloud Computing

Technology

The delivery of computing services (servers, storage, databases, software) over the internet. Provides scalability, flexibility, and cost efficiency.

SaaS (Software as a Service)

Technology

A software delivery model where applications are hosted by a vendor and made available to customers over the internet. Users access software through web browsers.

API Integration

Technology

The process of connecting different software systems using APIs. Enables data sharing and workflow automation between applications.

Microservices

Technology

An architectural approach where applications are built as a collection of small, independent services. Each service handles a specific business function.

Automation

Technology

The use of technology to perform tasks with minimal human intervention. In F&B, automation can handle repetitive tasks like order processing, inventory updates, and reporting.

Workflow

Technology

A series of steps or tasks that need to be completed to achieve a business goal. Workflow automation uses technology to streamline and automate these processes.

Real-time Processing

Technology

The processing of data immediately as it is received, without delay. Enables instant insights and responses, critical for operational decision-making.

Scalability

Technology

The ability of a system to handle growing amounts of work or to be easily expanded. Critical for businesses that plan to grow or handle variable workloads.

Dashboard

Technology

A visual display of key business metrics and KPIs. Provides at-a-glance views of performance and helps identify trends and issues quickly.

KPI (Key Performance Indicator)

Technology

Measurable values that demonstrate how effectively a business is achieving key objectives. Common F&B KPIs include food cost percentage, labor cost percentage, and AOV.

Showing 40 of 40 terms