Stammer.ai Docs
  • Welcome
    • 👋Welcome to Stammer.ai
    • 📑About Stammer.ai
    • 🆕New/ Latest Updates
  • START HERE
    • ❓What is Stammer.ai?
    • 🫡Agency Quick Start Guide
    • 📚Glossary
    • 🤑Our Community
  • AI Features
    • 🤖AI Agents (Chatbots)
      • How AI Agents Work
      • How to Build an AI Agent
    • 🔃AI Agent Dashboard
      • (White Label) Marketplace
      • Default Chatbot
      • Share Chatbot
      • Clone Chatbot
      • Chatbot UUID
      • Delete Chatbot
      • Summary (Analytics)
    • 💬Conversations
      • Review Past Conversations
      • Conversation Links
      • Training Better Responses
      • Live Chat
        • Human Handoff Automation (for Live Chat)
    • 📚Knowledge Base Explained
      • 💽Data Storage (Characters)
        • Storage (Characters) Example
      • Copy & Paste Text
      • Upload Documents
      • Scrape Websites
        • 24-hour Auto-Scraping
        • Scraping a Google Doc
        • Google Docs
      • Question & Answer Pairs
      • Data & Content Security
      • Citations/ Sources
      • HTML Rendering (Embed Images & Videos)
    • ✍️Prompting
      • What is a Base System Prompt?
      • Writing a Base System Prompt
      • Prompt Examples (Marketplace)
        • Base System Prompt Template (General)
    • 🔧AI Agent Settings
    • 🎨AI Chat Widget
      • Customize Chat Widget Apperance
      • Chat Widget Pop-Up
      • Initial Messages Pop-Up
      • Chat Widget Voice
    • ⚙️Advanced Settings for AI Agent
      • Model Version
      • Prioritize Question/Answer Results
      • Chatbot Visibility
      • Temperature
      • Message Template
      • Support Email
      • Domains
      • Show Data Sources in Chat Widget
      • Debug Mode
    • Leads 2.0
    • 📈Leads (Legacy)
      • Overview of Lead Generation
      • Lead Collection Form Fields
      • Lead Collection Webhook URL
      • Lead Collection Email Notification
      • In Chat Lead Collection Base System Prompt
      • Sending Lead Data to Zapier
      • Sending Lead Data to GHL
      • Sending Lead Data to Zoho CRM
    • 📅Scheduling
      • AI Scheduling - Simplified
      • AI Scheduling - Experimental (Beta)
        • What is Scheduling?
        • Calendar Integration
          • Google Calendar
        • Appointment Scheduling Activation
        • Appointment Scheduling Webhook URL
        • Appointment Scheduling Email Notification
        • Appointment Scheduling Base System Prompt
        • The Appointment Scheduling Functions & Customizing the Appointment Scheduling Prompt
    • 🧊Integrations
      • Embed Chatbot on a Website
      • Zapier App
      • GoHighLevel (GHL)
      • Instagram DM
      • Facebook Messenger
      • WhatsApp
      • ElevenLabs Voice
      • Discord
    • 🤖Troubleshooting
      • How to Respond in Any Language
      • Responses are Too Long
      • Debug Mode
      • Clickable Links in Responses
    • 🌌Functions (Labs)
      • Custom Functions
        • How Custom Functions Work
        • Code Generation Prompt for Custom Functions
        • Stock Market Data - Custom Function
        • Shopify - Custom Function
        • Airtable - Custom Function
        • Google Sheets - Custom Function
    • 🔄Vault
      • OpenAI API Key (ChatGPT)
      • Anthropic API Key (Claude)
      • xAI API Key (Grok)
      • Eleven Labs API Key
  • 👑MasterChat
  • White Label
    • 🤑What is White Labeling?
    • 👤Client Sub-Accounts
      • Create Sub-Account
      • Sub-Account Wallet
      • Sub-Account Storage Balance
      • Sub-Account Extra AI Agents
      • How to clone a chatbot to a sub-account
    • 🔗Custom Domain
      • Troubleshooting Custom Domain Deployment DNS Issues
    • 🏗️The SaaS Configurator
      • Create Subscription Package
        • Custom Packages + Settings
      • Add-Ons
        • Storage (Characters) - Add Ons
        • AI Agent Rebilling - Add Ons
        • MasterChat - Add Ons
        • Advanced Scraper - Add Ons
    • 👍White Label API
      • API Documentation
      • AI Agent API
        • Message AI Agent
        • Create AI Agent
        • Retrieve AI Agent
        • Update AI Agent
        • Delete AI Agent
      • Knowledge Base API
        • Add AI Agent Q/A
        • Add URLs to Scrape
        • Add Files (Pdf, Doc etc.)
      • Conversations
        • AI Agent Conversations
        • Retrieve Conversation
        • Delete A Conversation
      • Sub-Accounts
        • Create Sub-Account
        • Retrieve Sub-Account
        • Update Sub-Account
        • Delete Sub-Account
      • User
        • Retrieve User's Data
      • Examples
        • Create New Sub-Account (Zapier Example)
        • White Label API x Zapier X Slack Example
        • AI Chatbot Chrome Extension
    • 👾White Label (Your) Marketplace
    • 😇White Label Free Trials
      • Free Trial Settings (No CC Req.)
      • Free Trial Settings (CC Req.)
    • 🎨Custom Dashboard Styling
  • Agency Settings
    • ⛳Agency Dashboard
    • 👥User Permissions
    • 😎Agency Profile
    • 👥User Access
    • 💳Connect Stripe
    • 🔗Custom Menu Links
    • 🤘Default Prompts
  • Account Management
    • ⚙️Billing Usage & Settings
    • 💲Agency Billing
      • Subscription Plans
      • Change Subscription Plan
      • Update Credit Card
      • Download Invoice
      • Refunds
      • Cancel Subscription
    • 💱Agency Wallet
      • The Agency Wallet System
      • Agency vs Sub-Account Wallet
      • Auto Billing
      • Add Funds to Wallet
      • AI Messages Costs
      • AI Agents Costs
      • Storage (Characters) Costs
    • 🤲Admin Account Profile
      • Change Password
      • Google Auth Login
  • Support
    • 🤝Need Help?
    • 🔓Security & Compliance
      • Data Privacy & Security Report
      • GDPR
      • Terms & Conditions
      • Privacy Policy
      • Data Processing Agreement
      • AI Model Data Usage
      • Service Level Agreement
    • ⚡Discord Community
    • 📹Weekly Office Hours
    • 🙌FAQ
      • General
      • Localization
      • Data/Security
      • Set Up
      • Password
      • Technical Questions
      • Sales/Onboarding
      • Marketing/Pricing
      • Where can I find...?
      • Other
      • Alternatives to Stripe Connect
    • 📰Changelog/ Roadmap
    • 🍭Resources
      • Sales Deck
      • 💰AI Agency 101
        • How to Price Your AI Chatbots
        • How to Get More Clients
        • The Value Proposition of AI Agents
        • AI SaaS Funnel Explained
    • 🤑Affiliate Program
Powered by GitBook
On this page
  • 1. Create your Base System Prompt
  • The Stammer Default AI Agent Prompt:
  • Select Your Model (GPT-4o Recommended)
  • Write your prompt in English and then ask the Agent to translate
  • Using Markdown can be helpful to better structure your prompt to provide additional context but this is OPTIONAL
  • 2. Connect Your Data Sources
  • 3. Get the AI Agent Answering Questions accurately FIRST
  1. AI Features
  2. AI Agents (Chatbots)

How to Build an AI Agent

PreviousHow AI Agents WorkNextAI Agent Dashboard

Last updated 10 months ago

🚧 IMPORTANT: This Tutorial is currently in development

🚨 Have additional questions? Please open a ticket or ask on our Discord.

1. Create your Base System Prompt

The base system prompt is the foundation of an AI agent, defining its behavior and capabilities. To create an effective prompt:

  1. IMPORTANT: Start with the default prompt provided by Stammer (see below)

  2. Make small, incremental changes to fine-tune the agent's performance.

  3. Use clear, specific language to convey instructions and guidelines.

  4. Provide examples to illustrate expectations and context.

Investing time in crafting a well-structured prompt is crucial for building a reliable AI assistant that aligns with your goals.

The Stammer Default AI Agent Prompt:

// This is a comment and will not be read by ChatGPT.
// You may replace the following content with your own company information or 
// explore the marketplace for a variety of bots featuring Ready-to-Go Base System Prompts.

// Replace this with your company name and prefered agent name
You are a helpful assistant for Amazing Company named Stam.

// The knowledge base instructions are sent by us to the agent in a hidden prompt
Your job is answer questions customers send to you. To do that you have been given instructions on how to access the knowledge-base.

// This helps prevent hallucinations.
If you do not have answer to a question and it in the knowledge-base then let the user know that you do not have the answer to the question. You can say something like, "Hum, I am not sure."

// This keeps answers short and you can adjust this as needed
Keep your answers as concise as possible while still giving the required information.

Do not break character.

// This avoids it from answering random questions
Avoid answering questions that are not at all relevant to the business.

Select Your Model (GPT-4o Recommended)

Choosing the right model for your AI use case is crucial:

  1. GPT-4o: Recommended for most use cases, especially complex tasks like lead generation and scheduling. It's more intelligent and follows instructions better than GPT-4 and GPT-3.5.

  2. GPT-3.5: Suitable for simpler chatbots that answer questions based on uploaded knowledge base data.

To make the best decision, start with GPT-4 Turbo, complete this tutorial to get things working. Then, temporarily switch to GPT-3.5 to see if it meets your needs.

Write your prompt in English and then ask the Agent to translate

For optimal AI model performance, it's best to provide instructions in English. This is because the models, developed by companies and trained on data primarily written in English, have the strongest comprehension of this language.

To cater to non-English speaking end-users, we highly recommend:

  1. Write your base system prompt in English.

  2. Add specific terminology to instruct the AI to translate its responses as needed.

This approach ensures that the AI model accurately understands your instructions while still being able to communicate effectively with your target audience.

// Add this to your base system prompt somewhere
Users will speak to you in {INSERT_YOUR_LANGUAGE_HERE} so be sure to reply to them in that same language
// Or add this if you want to support all languages
Response to users in the language they response to you in. 

Using Markdown can be helpful to better structure your prompt to provide additional context but this is OPTIONAL

Using markdown formatting can be incredibly helpful when creating complex prompts. Markdown provides additional context to the AI models and structures the prompt in a way that is easier for humans to read and understand.

However, it's important to note that using markdown is completely optional. In fact, the default base system prompt used by Stammer AI does not include markdown formatting to keep things simple and avoid confusion for users.

If you're interested in using markdown to format your prompts, refer to the concise tutorial provided below.

# Markdown Tutorial

## Headers
# H1
## H2
### H3

## Emphasis
*Italic*
**Bold**
***Bold Italic***

## Lists
- Item 1
- Item 2
 - Subitem 1
 - Subitem 2

2. Connect Your Data Sources

Upload data to the AI agent's knowledge base.

3. Get the AI Agent Answering Questions accurately FIRST

  1. Connect your Data Sources

    1. Remember, you must get clean data into the bot

  2. Get the A.I. Agent Answering Questions Accurately FIRST

    1. Use Debug Mode if anything is not answering properly

      1. If the bot is not answering correctly then you need to:

        1. Get better data into the bot

        2. Add the question to your data with the appropriate answer

  3. Setup Lead Collection OR Appointment Scheduling

    1. Lead Collection

    2. Appointment Sched

      1. Understand limitations

      2. Consider alternative link based approach

That is all folks!

🤖
📚Knowledge Base Explained