
Installation and Setup
First, install the CAMEL package with all its dependencies- Visit the FireCrawl API Key page https://www.firecrawl.dev/app/api-keys
- Log in or sign up for a FireCrawl account.
- Navigate to the ‘API Keys’ section.
- Click on ‘Create API Key’ button to generate a new API key.
- Visit the SambaNova Cloud page https://cloud.sambanova.ai/apis
- Log in or sign up for a SambaNova account.
- Navigate to the ‘API Keys’ section.
- Click on ‘Create API Key’ button to generate a new API key.
Knowledge Crawling and Storage
Use Firecrawl to crawl a website and get markdown content as external knowledge:Basic Agent Setup
Qwen is large language model developed by Alibaba. It is trained on a massive dataset of text and code and can generate text, translate languages, write different kinds of creative content, and answer your questions in an informative way. Use Qwen models with SambaNova Cloud to set up CAMEL agent:Basic Chatbot Setup
Let’s set up the basic Chatbot with CAMEL Agent and ask some questions! Example question you can ask: How SambaNova Cloud supports Qwen 2.5 Coder and how fast it is?Basic Discord Bot Integration
To build a discord bot, a discord bot token is necessary. If you don’t have a bot token, you can obtain one by following these steps:- Go to the Discord Developer Portal:https://discord.com/developers/applications
- Log in with your Discord account, or create an account if you don’t have one
- Click on ‘New Application’ to create a new bot.
- Give your application a name and click ‘Create’.
- Navigate to the ‘Bot’ tab on the left sidebar and click ‘Add Bot’.
- Once the bot is created, you will find a ‘Token’ section. Click ‘Reset Token’ to generate a new token.
- Copy the generated token securely.
- Navigate to the ‘OAuth2’ tab, then to ‘URL Generator’.
- Under ‘Scopes’, select ‘bot’.
- Under ‘Bot Permissions’, select the permissions your bot will need (e.g., ‘Send Messages’, ‘Read Messages’ for our bot use)
- Copy the generated URL and paste it into your browser to invite the bot to your server.
- Navigate to the ‘Bot’ tab
- Under ‘Privileged Gateway Intents’, check ‘Server Members Intent’ and ‘Message Content Intent’.

Integrating Qdrant for More Files to build a more powerful Discord bot
Qdrant is a vector similarity search engine and vector database. It is designed to perform fast and efficient similarity searches on large datasets of vectors. This enables the chatbot to access and utilize external information to provide more comprehensive and accurate responses. By storing knowledge as vectors, Qdrant enables efficient semantic search, allowing the chatbot to find relevant information based on the meaning of the user’s query. In this section, we will add more data source, including camel’s example code regarding how to use SambaNova Cloud, then ask more complex questions. Set up an embedding model and retriever for Qdrant: You can use Tesla T4 Google Colab instance for running open-source embedding models with RAG functionality for bots, feel free switch to other embedding models supported by CAMEL.ChatAgent
based on the retrieved info:


Qwen2.5-Coder-32B-Instruct
. CAMEL’s bot, equipped with memory capabilities, can assist effectively by leveraging its ability to recall related information from previous interactions!

- 🐫 Creating Your First CAMEL Agent free Colab
- Graph RAG Cookbook free Colab
- 🧑⚖️ Create A Hackathon Judge Committee with Workforce free Colab
- 🔥 3 ways to ingest data from websites with Firecrawl & CAMEL free Colab
- 🦥 Agentic SFT Data Generation with CAMEL and Mistral Models, Fine-Tuned with Unsloth free Colab