Mission: Build Your Own Catan Board Game FAQ Agent in Minutes!

Pre-requisites:

Ready, set… Go!


Today, let’s dive into building a Retrieval-Augmented Generation (RAG) agent that helps answer questions directly from your documents! For this example, we’re creating a Catan FAQ agent to quickly answer game-related questions.

Screenshot 2024-11-15 012513.png

Step 1: Log In and Start a New Agent

Log into Truffle AI and head to the "My Agents" page. Once there, click on the Add New button to start building your agent. Give it a catchy name (like "Catan FAQ Agent") and a brief description to define its purpose.

Step 2: Set the Agent's Personality

Under Instruction, add a prompt that guides your agent’s behavior. For our Catan FAQ agent, a sample prompt might be:

"You are a Catan rules assistant. Use the provided rule book to answer questions related to the game. Don’t answer questions that aren’t related to Catan."

Step 3: Choose Your Model

Select the default gpt-4o-mini model, set Tool to None, and choose Chat for the widget. This setup gives your agent an interactive chat format.

Step 4: Upload the Rule Book

In the File Upload section, simply upload your Catan rule book file, then click Upload. Wait for the confirmation message, “File Uploaded”, to ensure everything is good to go!

Step 5: Finish and Start Chatting!

Click Add Agent – and voila! Your Catan FAQ RAG agent is ready. You’ll find it on your dashboard, where you can preview and start chatting right away.

Need to share? Use the ⓘ icon to grab a shareable link so others can try it too!