This kit is an example of how a local application can be created, configured and launched to leverage SambaNova's Agents Cloud. The Agents application routes requests to four different agents: General assistant agent, Sales leads agent, Deep research agent, and a Finance analysis agent. The agents process tens of thousands of tokens that generates lightning fast and accurate results. The Agents application helps sales teams and researchers by:
- Generating qualified sales information with company insights.
- Creating detailed research reports and educational content.
- Intelligently routing queries to the appropriate service.
- Supporting voice input for natural interaction.
The basic process of the Agents application is described below.
-
User query processing
- User submits a query via text or voice input.
- The application analyzes the query to determine its category (general assistance, sales leads, research, or financial analysis).
-
Agent assignment
- The query is routed to the appropriate agent based on content and intent.
- If the query spans multiple domains, agents collaborate to provide a comprehensive response.
-
Data retrieval and processing
- The selected agent fetches relevant data from available APIs and knowledge bases.
- AI models process and structure the information for clarity and accuracy.
-
Response generation
- The application generates a structured response.
- The response is formatted based on the query type (e.g., report format for research, tabular format for financial analysis).
-
User interaction and feedback
- The user reviews the response and may refine the query.
- The system continuously learns from interactions to improve future responses.
Note: View the Agent Reasoning panel on the right side of the application to see the real-time thought output.
-
Python 3.11 (exact version required)
-
Redis (via Docker or Homebrew)
# Install Redis with Docker docker run --name redis -p 6379:6379 -d redis
# Install Redis with Homebrew on macOS brew install redis brew services start redis
You will need to create free accounts to access these APIs:
- SambaNova API key for agent models
- Serper API key for web search
- Exa API key for company data
- Tavily API key for deep research capabilities
Note: The DeepSeek-R1-8K model is supported in the application provided you have access to it.
- Sign up for a free Clerk account at clerk.com.
- Create a new application in the Clerk dashboard.
- Get your publishable key and secret key.
- Configure your JWT issuer URL.
- Add these values to your environment variables as shown above.
You can setup and run the application in two ways: the cloud-hosted version or the locally-hosted version.
This version is hosted on SambaNova Cloud. No need to install dependencies locally. Just set up an account and use your SambaNova Cloud API Key.
- Go to the Agents application login page.
- Sign in using Clerk authentication (you will receive an email with login instructions).
- Once you login, go to settings and add the SambaNova Cloud API key.
- Start using the application to enhance sales workflows, conduct research, and gain actionable insights.
Follow the steps below to install the frontend for the Agents application.
Note: For the following commands, go to
/frontend/sales-agent-crew/
directory.
-
Install Vue.js dependencies.
yarn install
-
When you have completed the backend setup, you can either:
- Run a local development environment.
yarn dev
- Or, create a production build.
yarn build
Follow the steps below to install the backend for the Agents application.
Note: For the following commands, go to
/backend/
directory.
-
Install Python dependencies: Create and activate a virtual environment (for example with venv) and install the project dependencies inside it. Make sure to use Python 3.11.
python3.11 -m venv venv source venv/bin/activate pip install -r requirements.txt
Note: For the frontend environment variables, go to
/frontend/sales-agent-crew/
.
- Create a
.env
file with the following variables.# Clerk Keys CLERK_SECRET_KEY="<your_clerk_secret_key>" VITE_CLERK_PUBLISHABLE_KEY="<your_clerk_publishable_key>" # Vite Settings VITE_API_URL=/api VITE_WEBSOCKET_URL=ws://localhost:8000 VITE_ENABLE_WORKFLOW_TOGGLE=false VITE_ENABLE_USER_KEYS=false
Note: For the backend environment variables, go to
/backend/
.
- Create a
.env
file with the following required variables.# Authentication CLERK_JWT_ISSUER="https://your-clerk-instance.clerk.accounts.dev/.well-known/jwks.json" # API Keys for Services EXA_API_KEY="<your_exa_api_key>" SERPER_API_KEY="<your_serper_api_key>" TAVILY_API_KEY="<your_tavily_api_key>" # Required for Deep Research agent # Additional Settings ENABLE_TRACING="false" OTEL_SDK_DISABLED="true" LOG_DIR="/app/logs" ENABLE_USER_KEYS="false" # Optional: For usage tracking LANGTRACE_API_KEY=your_langtrace_api_key #Redis Master Salt Key - User should set to any value they wish REDIS_MASTER_SALT=abc123def456
-
Start the FastAPI backend server:
# From the project root cd backend uvicorn api.lead_generation_api:create_app --reload --host 127.0.0.1 --port 8000
-
Start the
Vue.js
frontend development server:# From the project root cd frontend/sales-agent-crew/ # For a development deployment yarn dev # For a production deployment yarn build
-
When you launch the front end, Vite will give you the localhost URL. Open your browser and navigate to:
http://localhost:<port_from_vite>/
You can access the settings modal to configure the API keys mentioned in the prerequisites section.
If you want to track usage and monitor the application's performance:
- Sign up for a LangTrace account
- Add your LangTrace API key to the backend
.env
file - The application will automatically log traces (disabled by default)
This application is built with:
- Vue 3 + Composition API
- Vite
- TailwindCSS
- Clerk for authentication
- Axios for API calls
The stack is designed to offer high-performance and scalability for both frontend and backend needs. See the frontend and backend technology stack listed in the table below.
Category | Technologies used |
---|---|
Frontend |
|
Backend |
|
This section describes the agents and feature capabilities of the application.
The General assistant agent helps with:
- Answering basic questions and queries.
- Providing explanations and clarifications.
- Offering technical support.
- Assisting with general research tasks.
Example queries for general assistance are listed below.
- "What's the difference between supervised and unsupervised learning?"
- "Can you explain how REST APIs work?"
- "What are the best practices for data visualization?"
- "How do I optimize database queries?"
- "Explain the concept of containerization"
The application uses the Sales leads agent to:
- Find relevant companies matching your criteria.
- Extract key company information.
- Provide funding status and insights.
- Generate customized sales approaches.
Example queries for sales leads information are listed below.
- "Find AI startups in Silicon Valley with Series B funding"
- "Which healthcare companies in Boston are working on drug discovery?"
- "Show me cybersecurity companies in Israel with enterprise clients"
- "Find sustainable energy startups in Nordic countries"
- "Show me B2B SaaS companies in Singapore with over 100 employees"
For research queries, the application uses the Deep research agent to:
- Analyze topics in-depth.
- Create structured research reports.
- Provide educational content.
- Include relevant citations and sources.
Example queries for research and content generation are listed below.
- "Explain quantum computing and its applications in cryptography"
- "How does CRISPR gene editing work in modern medicine?"
- "What's the relationship between AI and neuromorphic computing?"
- "Explain the impact of blockchain on supply chain management"
- "How do machine learning algorithms handle natural language processing?"
- "What are the latest developments in fusion energy research?"
For financial queries, the application uses the Financial analysis agent to:
- Analyze company financial performance.
- Track market trends and competitive positioning.
- Evaluate stock performance and valuation metrics.
- Generate investment insights.
- Monitor industry-specific metrics.
- Compare companies within sectors.
Example queries for financial analysis and market research are listed below.
- "Analyze Tesla's recent performance and future growth prospects"
- "How is the semiconductor industry performing this quarter?"
- "Compare cloud revenue growth between Microsoft Azure and AWS"
- "What's the market outlook for AI chip manufacturers?"
- "Evaluate Apple's financial health considering recent product launches"
- "Compare profitability metrics between major EV manufacturers"
The application automatically determines the best category for your query, ensuring efficient processing. Query routing is automatically done for use-cases such as:
- Sales lead information gathering
- Educational content/research creation
- Financial analysis and market research
The application allows you to make queries using audio input. Simply click the microphone icon to start speaking. It also offers:
- Automatic speech-to-text transcription
- Hands-free operation for convenience
Additional features of the application are listed below.
- π Secure API key management β Encrypted for maximum protection
- π Chat history tracking β Easily access past conversations
- π₯ Results export functionality β Download and share insights effortlessly
- π Real-time query routing β Instant categorization for accurate responses
- π Detailed company insights β In-depth business data at your fingertips
- πΉ Financial analysis and market trends β Stay ahead with real-time analytics
- β AI-generated outreach templates β Craft professional messages instantly
-
Configure API keys
- Open settings
- Enter your API keys
- Keys are securely encrypted
-
Start searching
- Type your query or use voice input
- System automatically determines query type
- Receive structured results
-
View results
- Sales information displayed as cards
- Research shown as structured reports
- Export functionality available
- Save important searches
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new pull request