# README
GoBank Project
I took inspiration from Anthony’s lightweight bank app and made my own Ai driven app
Welcome to the GoBank project! This application provides a simple banking system that allows users to perform various banking actions such as transferring money, depositing money, checking balances, viewing transaction history, and searching for other accounts. The project integrates with OpenAI CLI and Twilio to provide an intuitive chatbot interface through WhatsApp.
Getting Started
Prerequisites
Before you begin, ensure you have the following installed on your system:
- Go (version 1.16 or later)
- MongoDB
- OpenAI CLI
- Twilio account and API credentials
- GCP account (optional for deployment)
Installation
-
Clone the Repository
git clone https://github.com/yourusername/gobank.git cd gobank
-
Set Up Environment Variables
Create a .env file in the root directory of the project and add the following environment variables:
TWILIO_ACCOUNT_SID=your_twilio_account_sid
TWILIO_AUTH_TOKEN=your_twilio_auth_token
TWILIO_PHONE_NUMBER=your_twilio_phone_number
MONGODB_URI=your_mongodb_uri
OPENAI_API_KEY=your_openai_api_key
- Install Dependencies
Copy code
go mod tidy
- Run the Application
Copy code
go run main.go
Features
The application allows users to:
-
Transfer Money: Transfer money between accounts.
-
Deposit Money: Deposit money into your account.
-
Check Balance: Check the balance of your account.
-
Transaction History: View the transaction history of your account.
-
Search Accounts: Search for other accounts by name or phone number.
-
Usage
To interact with the GoBank application, follow these steps:
- Connect to Twilio's Sandbox
Go to WhatsApp and send a message to this phone number: +1 (415) 523-8886. Type join saddle-shine to join the Twilio sandbox.
- Interact with the Chatbot
- If it's your first time, you can ask for instructions by sending a message like "help" or "instructions".
- The chatbot will guide you through the available actions you can perform, such as transferring money, depositing money, checking your balance, viewing transaction history, and searching for other accounts.
Example Commands
- Transfer Money: "Transfer $100 to +1234567890"
- Deposit Money: "Deposit $50"
- Check Balance: "What is my balance?"
- Transaction History: "Show my transactions"
- Search Accounts: "Search account by phone number +1234567890"
Deployment You can deploy the application to Google Cloud Platform (GCP) or any other cloud provider of your choice. Follow the provider's documentation for deploying Go applications.
Contributing We welcome contributions to the GoBank project. To contribute:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Make your changes.
- Submit a pull request.
License This project is licensed under the MIT License. See the LICENSE file for details.
Contact For any questions or inquiries, please contact [email protected].