Bots
Learn tips on how to build succesful bots.
Last updated
Learn tips on how to build succesful bots.
Last updated
When building your AI assistant with the Firstbot Engine, the fundamental building blocks are the bots you create. Think of each bot as an individual employee with a specific task or skill. Just like hiring a new worker, you need to provide very clear and detailed instructions when creating a new bot.
A Bot is a node that operates using the instructions given by the prompt and communicates with the user.
In the prompt section, be sure to give substantial context about the purpose and responsibilities of this bot. What is their role within the overall workflow? What inputs do they require, and what outputs should they produce? Do they need to interact with or pass data to any other named bots or tools?
If your agent will work directly with users and needs to provide personal assistance, consider adding background information abour your imagined employee.
For example, a prompt for a teaching assistant agent may look like this:
"A client-centric teaching assistant at the University of Hong Kong, HKU is known for its outstanding interpersonal skills and cultural adaptability developed during the educational journey. Returning from her master's degree at Oxford University, she used her overseas experience and knowledge of humanities and digital technology to inspire her students."
For full prompt and more insights, go to Usage examples.
When building out your AI assistant workflow in Firstbot, it's not enough to simply connect the various bots and tools together. You also need to provide clear instructions on how data should flow between these components.
Think of it like a manager giving detailed directions to their employees. You're not just telling them where to go, but also specifying exactly what information they need to gather, how they should process it, and where they need to deliver the results.
By giving your AI assistant clear guidance on the connections and data flows between its various components, you can create a cohesive, well-orchestrated system that can handle complex tasks with precision and efficiency.
You can reference other bots or tools by name to explain how exactly they should communicate.
For example, you might create a servant called "Fact Checker" and instruct it as follows:
"The Fact Checker servant should receive a claim or statement as input text. It should then query the Knowledge Base to retrieve relevant facts and sources. The Fact Checker should analyze this information and output a true/false value indicating the validity of the original claim."
All communication between the user and the underlying agent goes through the first bot node in the system. The fisrt bot acts as the frontman, responsible for handling all incoming communications and directing the rest of the workflow accordingly.
The primary method of interacting with your agent is through the built-in chat interface. This allows you to type out natural language requests and have a back-and-forth dialogue with your assistant.
In addition to the web-based chat, your Firstbot agent can also be configured to integrate with Telegram and WhatsApp Business. More instructions are available in the configurations section.
1. 2. 2 Providing Knowledge and Context
No matter which communication method you choose, the key is to provide your Firstbot agent with clear, detailed instructions and any relevant supporting information. This will empower your assistant to understand your needs and execute tasks with maximum effectiveness.
You can use the chat function to upload necessary files, links to webpages, or other infromation that your agent may need to perform its duties.