âšī¸ How It Works
This chatbot reads company policies from a simple text file. To update the policies, you just need to replace the content file - no coding required!
The policy file is located at: data/company_policies.txt
Current Policy File Information
File Location:
data/company_policies.txt
File Size:
Loading...
Total Lines:
Loading...
Status:
Loading...
How to Update Policy Content
đ Step-by-Step Instructions
- Navigate to the
datafolder in your project directory - Open the file
company_policies.txtin any text editor (Notepad, VS Code, etc.) - Edit the content as needed - add, remove, or modify policies
- Save the file
- Click the "Reload Policies" button below to apply changes
- Test the chatbot to ensure it's responding with updated information
Alternative: Replace Entire File
If you have a completely new policy document, you can replace the entire file:
đ File Replacement Method
- Prepare your new policy document as a plain text file (.txt)
- Navigate to the
datafolder - Delete or rename the existing
company_policies.txt - Copy your new file and rename it to
company_policies.txt - Click "Reload Policies" to apply the changes
Server Command (Advanced)
You can also reload policies using this API endpoint:
curl -X POST http://your-server:8000/reload-policies