Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
MCP agents in frappe, talk with your DocTypes, n8n workflows.
GitHub checked 783h ago - refresh overdue
AmPower Jive is a conversational AI assistant for Frappe/ERPNext powered by LangChain and LangGraph. It enables users to query business data, get contextual help, perform document operations using natural language, track token usage locally, and run tenant-side RAG inside ampower_jive.
This README is written for self-hosted and marketplace installations. Bring your own OpenAI API key and review the data-sharing notes below before enabling the assistant in production.
Compatible with Frappe/ERPNext v15 and v16.
For a step-by-step setup and usage walkthrough, open the in-app documentation page at /app/jive-documentation.

Jive uses a modern AI architecture built on:
AmPower Jive currently uses OpenAI as the LLM provider.
AmPower Jive is designed to stay inside your Frappe/ERPNext tenant, but some request content is sent to OpenAI so the assistant can generate answers. Please review this section carefully before using it with business data.
/jive-helpdesk-chat when Helpdesk is installed and Enable HD Tickets is turned onRequirements: Frappe Insights app must be installed on your site.
Example queries:
Response includes:
Ampower Jive Token Logs tableampower_jiveJive Rag User mapping to pick the correct Jive Vector Data BaseJive Rag User mapping can link one user to one or more vector databases and optionally fall back by customer or customer IDDefault Vector Database can be used as a fallback when user-specific mode is enabled and no direct mapping matchesTypical flow:
Jive ConfigRAG Documents tableUser Specific RAG flow:
Jive ConfigRAG Pipeline Mode to User Specific RAGJive Vector Data Base recordsJive Rag User mappings that link each user to one or more vector databasesDefault Vector Database only if you want a controlled fallback/jive-helpdesk-chat if portal helpdesk RAG is enabled/jive-helpdesk-chat
cd /path/to/frappe-bench
bench get-app https://github.com/Ambibuzz/ampower_jive.git
bench --site your-site.local install-app ampower_jive
bench get-app insights
bench --site your-site.local install-app insights
bench --site your-site.local migrate
bench restart
If you want managed agents or managed model settings, configure ampower_jive_core and set:
bench build --app ampower_jive
bench --site your-site.local migrate
bench --site your-site.local clear-cache
bench restart
Navigate to: your-site.local/app/jive-config
| Field | Description | Default |
|---|---|---|
| Active Jive | Enable/disable Jive | Unchecked |
| Enable Voice Input | Allow voice queries | Checked |
| Enable File Upload | Allow context file uploads | Checked |
| Max History Messages | Context messages for AI | 10 |

| Field | Description | Default |
|---|---|---|
| Data Query Model | Model for data queries | gpt-4o-mini |
| Data Query Temperature | Creativity (0-1) | 0.3 |
| Helpdesk Model | Model for help queries | gpt-4o-mini |
| Helpdesk Temperature | Creativity (0-1) | 0.3 |
| HD Tickets Model | Model for ticket summaries and follow-up responses | gpt-4o-mini |
| Agent Model | Model for write operations | gpt-4o-mini |
| Agent Temperature | Creativity (0-1) | 0.2 |
| Agent Require Approval | Require user approval | Checked |
| Field | Description |
|---|---|
| LLM Provider | OpenAI |
| OpenAI API Key | Your OpenAI API key |
When Jive Core is enabled, the local app treats core as the source of truth for:
The local app still keeps:
For RAG, the tenant builds its own local vector index inside ampower_jive using the documents added in Jive Config.
Token usage is tracked in the client app and surfaced in Jive Config.
Relevant fields:
daily_token_limitdaily_tokens_usedmonthly_token_limitmonthly_tokens_usedtoken_usage_last_updatedlocal_daily_token_usagelocal_monthly_token_usagelocal_monthly_token_limitThe full log is stored in Ampower Jive Token Logs.
Add doctypes to the Included Doctypes table in Jive Config. Only doctypes listed here can be used for Data Query and Insights mode.
Frappe still enforces runtime read permissions, so a doctype must be both:
Agent Mode also respects the same permission model before it plans or executes a write operation.
These controls affect the dedicated website helpdesk page as well as the desk experience:
| Field | Description |
|---|---|
| Enable HD Tickets | Shows the HD Tickets mode in desk chat and on /jive-helpdesk-chat |
| Enable RAG Helpdesk | Shows the portal RAG mode as Doc Help on /jive-helpdesk-chat |
HD Tickets also has its own model and optional system prompt fields in Jive Config for ticket-specific responses.
Add documents to the RAG Documents table, set chunk size/overlap/top-k, and click Process RAG Documents to build the local index.
If you switch RAG Pipeline Mode to User Specific RAG, the routing changes:
Jive Vector Data Base recordsJive Rag UserDefault Vector Database as a fallbackWhen Enable RAG Helpdesk is enabled, website users see the same routed document knowledge on /jive-helpdesk-chat as Doc Help.

| Field | Description | Default |
|---|---|---|
| Welcome Title | Chat welcome heading | "What would you like to know?" |
| Welcome Message | Chat welcome description | Default message |
| Primary Color | Theme accent color | #6366f1 |
| Show Suggestions | Show quick suggestions | Checked |
Click Save to apply the settings.
Jive uses Frappe's role-based permission system to control access. Only users with the appropriate roles can use or configure Jive.
| User Role | Can USE Jive Chat | Can CONFIGURE Jive | Notes |
|---|---|---|---|
| Administrator | Yes, always | Yes, always | Full access to all features |
| System Manager | No (unless user also has Jive User) | Yes | Can configure but needs Jive User role to use chat |
| Jive Admin | No (unless user also has Jive User) | Yes | Tenant-side admin for Jive Config and RAG processing |
| Jive User | Yes | No | Can use chat but cannot configure settings |
| Website User | Yes, on /jive-helpdesk-chat | No | Logged-in portal users can use Helpdesk and any enabled portal helpdesk modes |
| Regular User | No | No | No access to Jive |
Logged-in Website User accounts can use the dedicated helpdesk page at /jive-helpdesk-chat even if they do not have the Jive User role.
This page is meant for portal-style support use and only shows the helpdesk modes that are enabled for website access:
/jive-helpdesk-chat without the Jive User role, but only for the portal helpdesk modes made available thereTo allow a user to use Jive chat:
/app/user)The user will now be able to:
Website users do not need the Jive User role for the dedicated portal page. They sign in through the website and then open /jive-helpdesk-chat.
To revoke access from a user:
The user will immediately lose access to Jive chat.
Floating Chat Button:
Jive Chat Panel:
Website Helpdesk Page (/jive-helpdesk-chat):
Jive Config Page (/app/jive-config):
All API endpoints check permissions:
chat() - Requires Jive User role (or Administrator)get_jive_config() - Returns has_access and is_admin flagscheck_jive_access() - Explicit endpoint to check current user's accessIf a user without permission tries to use the chat API, they will receive:
{
"error": true,
"message": "You don't have permission to use Jive. Please contact your administrator to grant you the 'Jive User' role.",
"permission_denied": true
}
Agent Mode uses a step-up workflow so the model can propose changes safely before anything is written:
No write is executed before approval, and Frappe still enforces standard document validation, workflow, and permission checks at execution time.
Access: Click the floating Jive AI button on the bottom right of your screen.
Note: You must have the "Jive User" role (or be Administrator) to access the chat interface. See Role-Based Permissions for details.

Select "Data Query" mode (⬡ icon) and ask questions like:
Select "Helpdesk" mode (? icon) for guidance:
With Context Files:
Select "Agent" mode (◈ icon) for document operations:
The agent will:
Select "Insights" mode (📊 icon) for data visualization:
Example queries:
What you'll get:
Data Summary - Top entries with formatted values
📊 Revenue by Customer
Showing 10 data points
Top entries:
• ABC Corp: 45.2K
• XYZ Inc: 28.1K
• DEF Ltd: 15.8K
Quick Insights - AI-generated analysis
💡 Quick Insights:
• ABC Corp leads with 35.2% of the total
• Top 3 account for 72% - consider diversification
Recommendation - Action-oriented advice
Recommendation: Focus on replicating success factors
from top performers to boost overall revenue.
Follow-up Suggestions - Continue your analysis
Would you like to:
• See monthly trend for these customers?
• View top products sold to these customers?
• Compare with previous period?
Inline Chart - Visual preview in chat
Direct Link - One-click to open in Frappe Insights
Note: Requires Frappe Insights app to be installed:
bench get-app insights
bench --site your-site install-app insights
Select the RAG agent in the chat UI after the documents have been uploaded and processed in Jive Config.
ampower_jiveIf the RAG agent is missing, verify:
If enabled in config:
ampower_jive/
├── ampower_jive/
│ ├── agent/ # LangChain/LangGraph implementation
│ │ ├── __init__.py
│ │ ├── graph.py # Main JiveAgent with StateGraph
│ │ ├── tools.py # Query and helpdesk tools
│ │ ├── agent_tools.py # Document operation tools (CRUD)
│ │ ├── agent_graph.py # AgentModeGraph for write operations
│ │ ├── insights_graph.py # InsightsAgent for visualizations
│ │ ├── insights_tools.py # Chart creation and analysis tools
│ │ └── state.py # AgentState TypedDict
│ │
│ ├── api.py # Whitelisted API endpoints
│ │
│ ├── utils/
│ │ ├── __init__.py
│ │ ├── config_provider.py # Local + Jive Core settings and agent sync
│ │ ├── jive_core_client.py # HTTP client for Jive Core APIs
│ │ ├── file_processor.py # PDF, DOCX, CSV text extraction
│ │ └── ...
│ │
│ ├── ampower_jive/
│ │ ├── doctype/
│ │ │ ├── jive_config/ # Singleton configuration
│ │ │ ├── jive_chat_logs/ # Conversation history
│ │ │ ├── jive_logs/ # Message child table
│ │ │ └── jive_config_doctype/ # Allowed doctypes child table
│ │ │
│ │ └── page/
│ │ └── jive_chat/ # Main chat UI page
│ │ ├── jive_chat.js
│ │ └── jive_chat.json
│ │
│ └── public/
│ └── main.bundle.js # Additional frontend assets
│
├── pyproject.toml # Python dependencies
├── hooks.py # Frappe hooks
└── README.md
dependencies = [
"openai>=1.0.0",
"langchain>=0.3.0",
"langchain-openai>=0.2.0",
"langgraph>=0.2.0",
"Pillow>=10.0.0",
"PyPDF2>=3.0.0",
"python-docx>=1.0.0",
]
The ampower_jive_core package adds centralized agent control, prompts, and managed settings. It is not required for local RAG.
Jive uses Frappe's built-in frontend build system. No additional Node.js packages are required.
Frappe provides:
esbuild - JavaScript bundlingTo ensure Node dependencies are installed:
cd /path/to/frappe-bench
# Using yarn (recommended)
yarn install
# Or using npm
npm install
Build the app:
bench build --app ampower_jive
All endpoints require authentication.
POST /api/method/ampower_jive.api.chat
Content-Type: application/json
{
"message": "Your question",
"mode": "query|helpdesk|agent|insights|rag",
"conversation_id": "optional-existing-conversation",
"session_id": "optional-session-for-context"
}
Response:
{
"error": false,
"response": "AI response text",
"conversation_id": "JIVE-00001",
"mode": "query",
"title": "Conversation title"
}
GET /api/method/ampower_jive.api.get_jive_config
GET /api/method/ampower_jive.api.get_user_conversations
POST /api/method/ampower_jive.api.get_conversation_history
{
"conversation_id": "JIVE-00001"
}
POST /api/method/ampower_jive.api.upload_helpdesk_context
{
"file_url": "/files/document.pdf",
"session_id": "session_id"
}
POST /api/method/ampower_jive.api.clear_helpdesk_context
{
"session_id": "session_id"
}
POST /api/method/ampower_jive.api.approve_plan
{
"conversation_id": "JIVE-00001"
}
POST /api/method/ampower_jive.api.reject_plan
{
"conversation_id": "JIVE-00001"
}
/app/jive-config)bench --site your-site.local show-logs./env/bin/pip list | grep -E "(PyPDF2|python-docx)"
bench --site your-site.local migrate
This error occurs when using an older version of Frappe Insights that doesn't support Workbooks.
Solution:
# Update Insights to the latest version
cd apps/insights
git pull origin main
bench --site your-site migrate
bench restart
# Install Frappe Insights
bench get-app insights
bench --site your-site install-app insights
bench --site your-site migrate
bench restart
/insightsAS to name columns clearly:
SELECT customer AS label, SUM(grand_total) AS value
FROM `tabSales Invoice`
GROUP BY customer
# Clean and rebuild
bench build --app ampower_jive --force
bench --site your-site.local clear-cache
bench restart
bench start
bench watch
bench build --app ampower_jive
bench --site your-site.local clear-cache
bench --site your-site.local console
from ampower_jive.api import chat, get_jive_config
# Test configuration
config = get_jive_config()
print(config)
# Test chat
result = chat("Show recent Sales Invoices", mode="query")
print(result)
# View error logs
bench --site your-site.local show-logs
# Check specific errors
bench --site your-site.local console
>>> frappe.get_all("Error Log", limit=5)
For issues and questions, contact:
Ambibuzz Technologies LLP
MIT License
Copyright (c) 2025 Ambibuzz Technologies LLP
GitHub checked 16h ago - refresh overdue. Recently viewed repositories target hourly refresh.