BRX Quickstart Guide
This guide will help you get started with BRX quickly. You’ll learn how to set up your environment, create your first BRK, and execute it.Prerequisites
Before you begin, make sure you have:- A BRX account (sign up at app.brx.ai if you don’t have one)
- Node.js 14+ installed (for using the Node.js SDK)
- Basic understanding of JavaScript/TypeScript (for the examples in this guide)
Installation
Install the BRX Node.js SDK
Get Your API Key
- Log in to the BRX Dashboard
- Navigate to Settings > API Keys
- Click “Generate New API Key”
- Copy your API key for use in your application
Your First BRK
Let’s create a simple BRK that generates a product description based on some input parameters.1. Initialize the BRX Client
Create a new file calledindex.js
(or index.ts
for TypeScript) and add the following code:
2. Create a BRK
Now, let’s create a BRK for generating product descriptions:3. Use the BRK
Now that we’ve created a BRK, let’s use it to generate a product description:4. Run Your Code
Save your file and run it:Next Steps
Now that you’ve created and used your first BRK, here are some next steps to explore:Create Complex BRKs
Learn how to create BRKs with dependencies for more complex workflows
Explore the API
Dive into the BRX API for more advanced usage
Tool Calling
Integrate external tools and APIs with your BRX workflows
BRX Client
Learn more about the BRX Client and its capabilities
Troubleshooting
Common Issues
Authentication Error
Authentication Error
If you see an authentication error, make sure your API key is correct and has not expired. You can generate a new API key in the BRX Dashboard.
BRK Execution Error
BRK Execution Error
If your BRK fails to execute, check the error message for details. Common issues include:
- Invalid input values
- Exceeded token limits
- Rate limiting
- Dependency errors
Network Issues
Network Issues
If you’re experiencing network issues, check your internet connection and firewall settings. The BRX API requires outbound HTTPS connections.
Getting Help
If you’re still having issues, you can:- Check the API Reference for detailed documentation
- Join the BRX Community Slack for community support
- Contact BRX Support for direct assistance