# Pull Request Description
## Related Issue
Fixes#192
## Changes Made
This PR adds the following changes:
Now we have the below detailed examples in the tg bot examples:
1. **Basic TG Bot**: This guide explains how to run a simple Solana
Agent Kit on a Telegram bot for a single user.
2. **Advanced TG Bot**: This guide includes advanced features such as:
- Storing chat history for each user in a PostgreSQL database.
- Maintaining a unique wallet for each user in a Firebase database.
- Managing the chats of multiple users simultaneously.
3. **Group TG Bot**: This example demonstrates how to create a Telegram
bot using the Solana Agent Kit by Send AI. It includes advanced features
such as:
- Storing chat history for each user in a PostgreSQL database.
- Maintaining a unique wallet for each user in a Firebase database.
- This special bot can be run in Telegram groups and handle private
conversations, such as wallet addresses, in private chats. It works in
groups, maintains a separate context for each user, responds to each
user by tagging them, and can handle multiple requests simultaneously.
It will only reply if the bot is tagged in the group or its message is
replied to.
## Checklist
- [ x ] I have tested these changes locally
## Related Issue
Fixes#58
## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- I added an examples directory with a README file which can be used to
list templates, projects and examples built by the team and community
## Implementation Details
<!-- Provide technical details about the implementation -->
- The template link contained in the README is a template I created
using the Nextjs and Langchain template.
- The template includes a proper implementation of the Solana Agent Kit
and Langchain response streaming.
## Additional Notes
<!-- Any additional information that reviewers should know -->
I believe that examples should be left out of library repos, not just
because of bundle size but because the repo itself can get quite big and
maintaining a monorepo never scales well.
## Checklist
- [x] I have tested these changes locally
- [x] I have updated the documentation
# Pull Request Description
Added a Telegram bot starter example, with steps on how to run and host
it successfully.
## Related Issue
Fixes#83
## Changes Made
This PR adds the following changes:
- Adds an example on how we can use agent kit in a telegram bot using
nextjs
-
## Implementation Details
- Used next js and ngrok or vercel to host the bot and telegram bot api
to have it.
## Transaction executed by agent
Yes it is able to do everything.
## Prompt Used
NA
## Additional Notes
NA
## Checklist
- [ x ] I have tested these changes locally
# Pull Request Description
## Related Issue
Fixes#61
## Changes Made
This PR adds the following changes:
- Added a new example demonstrating LangGraph integration with Solana
Agent Kit
- Implemented a multi-agent system with specialized agents for different
tasks
- Added state management and routing logic using LangGraph's StateGraph
- Integrated Tavily search capabilities for enhanced general-purpose
queries
- Added support for token swaps using Jupiter DEX
- Implemented TypeScript-based project structure with full type safety
- Added comprehensive documentation and architecture diagram
## Implementation Details
- Created a directed workflow using StateGraph with the following
components:
- Manager Agent: Handles query classification and routing
- General Agent: Processes basic queries with Tavily search integration
- Transfer/Swap Agent: Handles token transfers and DEX operations
- Read Agent: Manages blockchain data queries
- Implemented state management using LangGraph annotations for query
classification
- Added environment-based configuration for API keys and RPC endpoints
- Integrated with external dependencies:
- @langchain/community v0.3.20
- @langchain/core v0.3.26
- @langchain/langgraph v0.2.36
- solana-agent-kit v1.3.0
- Set up TypeScript configuration with ESM support
## Architecture
<img width="801" alt="Screenshot 2024-12-27 at 5 59 26 PM"
src="https://github.com/user-attachments/assets/a90597ac-3bfc-47e1-b1de-5a17a3de106b"
/>
## Transaction executed by agent
Example transaction:
## Additional Notes
- The implementation follows a modular architecture as shown in the
architecture diagram
- Supports both read and write operations on the Solana blockchain
- Includes comprehensive error handling and type safety
- Provides flexible configuration through environment variables
- Project structure follows best practices with clear separation of
concerns
- Includes example queries for testing different agent pathways
## Checklist
- [x] I have tested these changes locally
- [x] I have updated the documentation
- [x] I have added a transaction link
- [x] I have added the prompt used to test it