Skip to content

PaymanAI/paychain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Paychain πŸ”—πŸ’°

Build AI agents that can send real money using natural language with LangChain and Payman. Paychain combines the power of LLMs with Payman's secure payment infrastructure to enable conversational financial transactions.

Why Paychain?

  • πŸ€– Natural Language Payments: Let AI agents process payments through simple conversations
  • πŸ”’ Built on Payman: Leverage Payman's enterprise-grade payment infrastructure
  • πŸš€ Quick Integration: Get started in minutes with our Python SDK
  • πŸ’‘ Flexible Tools: Rich set of Payman payment operations including sending, requesting, and managing payees
  • πŸ› οΈ Built with LangChain: Leverage the power of the LangChain ecosystem

Quick Start πŸš€

  1. Get your API keys:

  2. Clone the repository:

git clone <repository-url>
cd paychain-examples
  1. Create and activate virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows use: .venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the root directory:
PAYMAN_API_SECRET=your_payman_api_secret  # From app.paymanai.com
OPENAI_API_KEY=your_openai_api_key
PAYMAN_ENVIRONMENT=sandbox  # or production
  1. Run the tests:
# Test basic payment functionality
python examples/test_payment.py

# Test AI agent with all payment tools
python examples/test_agent.py

Features ✨

  • Direct payment processing
  • AI agent with natural language payment processing
  • Multiple payment tools:
    • Send payments
    • Search payees
    • Add new payees
    • Request money
    • Check balances

Project Structure πŸ“

paychain-examples/
β”œβ”€β”€ .env                 # Environment variables (not in git)
β”œβ”€β”€ .gitignore          # Git ignore file
β”œβ”€β”€ requirements.txt    # Project dependencies
└── examples/           # Test examples
    β”œβ”€β”€ __init__.py
    └── test_agent.py   # AI agent test

Security πŸ”’

  • Never commit your .env file
  • Keep your API keys secure
  • Use sandbox environment for testing

Contributing 🀝

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License πŸ“„

MIT

About

Payman + Langchain repository that lets AI Agents send real money.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages