Quickstart Guide
Get started with Suada in under 10 minutes
Quickstart Guide
This guide will help you integrate Suada into your application. We’ll cover both back-end integration with LangChain and front-end UI components.
Prerequisites
Before you begin, make sure you have:
- A Suada account (sign up at suada.ai if you haven’t already)
- Your API key from the dashboard
- Node.js 16+ or Python 3.8+ for back-end integration
- A LangChain-compatible LLM (e.g., OpenAI API key)
Environment Setup
Back-end Environment Variables
Create a .env
file in your project root:
Front-end Environment Variables
For React/Vue/Angular applications, create a .env
file:
Back-end Integration
Step 1: Install the SDK
Choose your preferred back-end language:
Step 2: Create a LangChain Agent
Here’s how to use Suada as a tool in your LangChain agent:
Front-end Integration
Step 1: Install the Front-end SDK
Choose your preferred front-end framework:
Note: All front-end SDKs require the @suada/core
package as a peer dependency.
Step 2: Add the Integration Manager
Add the integration manager component to your application:
Best Practices
Security
- Never commit API keys to version control
- Use environment variables for sensitive data
- Implement proper error handling
- Validate user input
- Use HTTPS for all API calls
Performance
- Initialize SDK instances once and reuse them
- Implement proper cleanup in component unmount
- Handle offline scenarios gracefully
- Use proper caching strategies
- Optimize network requests
Development
- Use TypeScript/type hints when available
- Follow framework best practices
- Write unit tests
- Keep dependencies updated
- Use proper error boundaries
Common Issues & Solutions
API Key Issues
If you’re getting authentication errors:
- Verify your API key is correctly set in environment variables
- Check if the API key has the correct permissions
- Ensure the environment variable is accessible in your application
Integration Connection Issues
If integrations aren’t connecting:
- Verify the OAuth callback URL is correctly configured
- Check if the integration is enabled in your Suada dashboard
- Ensure proper error handling is in place
LangChain Integration Issues
If the LangChain agent isn’t working:
- Verify OpenAI API key is correctly set
- Check if the model name is supported
- Ensure proper error handling for API calls
Need Help?
If you run into any issues:
- Email us at hello@suada.ai