โ† Back to Lessons
  • Chatbots

  • AI Agents

  • Website Integration

How to Create an AI Agent in Chatbase and Integrate It into a Gamma Website

Introduction ๐Ÿค–

Introduction ๐Ÿค–

AI agents can enhance your website by providing automated customer support, answering FAQs, or assisting users interactively. With Chatbase, you can create a custom AI chatbot and embed it into your Gamma website with ease.

In this tutorial, weโ€™ll guide you through creating your AI agent in Chatbase and integrating it into a Gamma website.


Step 1: Create a Chatbase Account ๐Ÿ”ง

To get started, sign up for a free Chatbase account:

  1. Go to Chatbase.
  2. Click Sign Up and create an account.
  3. Once logged in, youโ€™re ready to build your AI agent.

Step 2: Create Your AI Agent in Chatbase ๐Ÿค–

Now, letโ€™s build your chatbot:

  1. Click "Create New Agent" in Chatbase.
  2. Add knowledge sources โ€“ You can upload:
    • ๐Ÿ“„ Files (PDF, DOCX, TXT).
    • ๐ŸŒ Website links (URLs for scraping knowledge).
    • ๐Ÿ“ Text (Custom instructions or explanations).
    • โ“ Q&A pairs (Predefined questions and answers).
    • ๐Ÿ“š Notion pages (If you manage content on Notion).
  3. Click "Create Agent" to finalize.

โœ… Example: If youโ€™re building a customer service AI, upload FAQs and policy documents to train your chatbot.


Step 3: Test Your AI Agent ๐Ÿ› ๏ธ

Before embedding it, test your chatbot:

  1. Go to the Playground in Chatbase.
  2. Ask questions to check if responses are accurate.
  3. Refine your knowledge base if needed.

โœ… Tip: Ensure your chatbot provides clear, relevant, and helpful answers before publishing.


Step 4: Make Your AI Agent Public & Get the Embed Code ๐ŸŒ

To integrate your chatbot into a website, you must make it public:

  1. Click "Connect" in Chatbase.
  2. Select the "Embed" tab.
  3. Click "Make Public" to enable embedding.
  4. Choose "Embed the iframe directly" and copy the generated iframe code.

โœ… Example: Your iframe code will look like this:

1<iframe 2 src="https://www.chatbase.co/chatbot-iframe/YOUR_AGENT_ID" 3 width="100%" 4 style="height: 100%; min-height: 700px" 5 frameborder="0" 6> 7</iframe>

Your AI agent is now ready to be embedded into your Gamma website! ๐Ÿš€


Step 5: Embed Your AI Agent in a Gamma Website ๐ŸŒ

Now, letโ€™s integrate the chatbot into Gamma:

  1. Log in to your Gamma account.
  2. Open an existing website or create a new one.
  3. Add a blank card where you want the chatbot to appear.
  4. Click "Embed Apps & Webpages" from the right-side menu.
  5. Select "Webpage or App" and drag & drop it into your card.
  6. Paste the iframe URL from Chatbase into the input field.
  7. Select the iframe element and set "Click Action" to Expand.
  8. Click "Publish" to finalize your website.

This is an example website I made with Chatbase and Gamma:

Chatbase and Gamma Example


Conclusion ๐ŸŽฏ

By combining Chatbase and Gamma, you can easily create and embed an AI chatbot into your website. Whether for customer support, automation, or interactive learning, AI agents enhance user experience and engagement. You can make a similar process in your own website.