Erpnext Chatgpt
Welcome to the ERPNext OpenAI Integration app. This app allows you to integrate OpenAI functionality with your ERPNext system, enabling advanced AI-powered capabilities.
- Author: williamluke4
- Repository: https://github.com/williamluke4/erpnext_chatgpt
- GitHub stars: 11
- Forks: 20
- Category: Other
- Maintenance: Unmaintained
Install Erpnext Chatgpt
bench get-app https://github.com/williamluke4/erpnext_chatgpt
Add the Frappe Gems badge to your README
Maintain Erpnext Chatgpt? Paste this into your README:
[](https://frappegems.com/gems/apps/williamluke4/erpnext_chatgpt)
About Erpnext Chatgpt
ERPNext OpenAI Integration
Welcome to the ERPNext OpenAI Integration app. This app allows you to integrate OpenAI functionality with your ERPNext system, enabling advanced AI-powered capabilities.
Features
- Seamless integration with ERPNext.
- Use OpenAI to generate responses to user queries.
- Execute ERPNext-specific functions through AI prompts.
- Enhance your ERPNext system with AI-driven insights and automation.
Prerequisites
- ERPNext installed and configured.
- An OpenAI API key.
Installation
Clone the repository:
git clone https://github.com/williamluke4/erpnext_chatgpt.gitNavigate to the app directory and install dependencies:
cd erpnext_openai_integration bench get-app erpnext_chatgpt .Install the app on your ERPNext site:
bench --site [your-site-name] install-app erpnext_chatgpt
Setup
Create OpenAI API Key
- Go to the OpenAI API Keys page and create a new API key.
Set OpenAI API Key
- Log in to your ERPNext instance.
- Navigate to OpenAI Settings.
- Enter your API key in the API Key field and save.

Usage
Ask OpenAI
Note: The button will only show if you are a system manager and the api key is valid.
- Click the OpenAI Chat button.
- Create a Session
- Ask your question in the input field and click Ask.
- The AI-generated response will appear in the response area.

Available Functions
You can use the following functions with the OpenAI integration:
- getsalesinvoices: Get sales invoices from a specified date range.
- getsalesinvoice: Get a specific sales invoice by its number.
- get_employees: Retrieve a list of employees, optionally filtered by department and designation.
- getpurchaseorders: Get purchase orders from a specified date range, optionally filtered by supplier.
- get_customers: Get a list of customers, optionally filtered by customer group.
- getstocklevels: Get current stock levels, optionally filtered by item code.
- getgeneralledger_entries: Get general ledger entries from a specified date range, optionally filtered by account.
- getbalancesheet: Get the balance sheet report for a specified date range.
- getprofitandlossstatement: Get the profit and loss statement report for a specified date range.
- getoutstandinginvoices: Get the list of outstanding invoices, optionally filtered by customer.
- getsalesorders: Get sales orders from a specified date range, optionally filtered by customer.
- getpurchaseinvoices: Get purchase invoices from a specified date range, optionally filtered by supplier.
- getjournalentries: Get journal entries from a specified date range.
- get_payments: Get payment entries from a specified date range, optionally filtered by payment type.
Support
If you encounter any issues or have any questions, please create an issue on our GitHub repository.
Related Other apps for Frappe & ERPNext
- Erpnext — Free and Open Source Enterprise Resource Planning (ERP)
- Helpdesk — Modern, Streamlined, Free and Open Source Customer Service Software
- Print Designer — Visual print designer for Frappe / ERPNext
- Ctr — CTR模型代码和学习笔记总结
- Whitelabel — Whitelabel ERPNext
- Fossunited — fossunited.org
- Helm — Helm Chart Repository for Frappe/ERPNext
- Frappe Attachments S3 — A frappe app to upload file attachments in doctypes to s3.