A secure and scalable payment platform that enables AI agents to make authorized financial transactions using virtual cards.
- Virtual Card Management: Create and manage virtual cards with configurable limits and restrictions
- OpenAI Integration: Add payment capabilities to your existing OpenAI assistants
- LangChain Integration: Build AI agents with payment capabilities using LangChain
- Transaction Controls: Set spending limits, merchant restrictions, and approval workflows
- Real-time Monitoring: Track transactions and analyze spending patterns
- Security Features: Role-based access control, encryption, and comprehensive audit logging
- Python 3.11+
- Node.js 18+
- PostgreSQL
- Redis
- Clone the repository
git clone [repository-url]
cd ai-agent-payment-platform
- Install dependencies
# Backend
cd backend
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
pip install -r requirements.txt
# Frontend
cd frontend
npm install
- Configure environment variables
cp .env.example .env
# Edit .env with your configuration
- Start development servers
# Backend
cd backend
uvicorn app.main:app --reload
# Frontend
cd frontend
npm run dev
- Create your assistant in the OpenAI dashboard
- Get your Assistant ID
- Add a virtual card through our platform:
- Set spending limits
- Configure merchant categories
- Enable transaction controls
- Start using the make_payment function in your assistant
Example usage:
# Your assistant can now make payments
make_payment({
"amount": amount,
"merchant": merchant_name,
"category": merchant_category,
"description": transaction_description
})
- Set appropriate spending limits
- Use merchant category restrictions
- Enable transaction monitoring
- Implement approval workflows for high-value transactions
- Regularly review activity logs
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.