Uses: Python SDK - an agent loop lives in your application code, so this recipe is SDK-only by nature. For the same loop in TypeScript, see the Slack assistant.
Run the original
python/examples/priority-erp-agent/.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The agent pattern pointed at an ERP - orders, invoices, customers, inventory.
from engini import Engini
from engini.providers.anthropic import AnthropicProvider
client = Engini(provider=AnthropicProvider()) # reads ENGINI_API_KEY
conn_id = next(c.connection_id for c in client.connections.list(application="priority_erp"))
toolset = client.toolset(connections={"priority_erp": conn_id})
tools = toolset.tools()
SYSTEM_PROMPT = (
"You are a helpful assistant connected to the user's Priority ERP account "
"through Engini tools. Use the tools to answer questions about their "
"customers, vendors, sales and purchase orders, invoices, items/inventory, "
"and financial documents. If a tool needs an ID you don't have yet, call a "
"tool to look it up first. Only use the tools provided."
)
cd python/examples/priority-erp-agent
uv run agent.py "What open sales orders do I have?"
uv run agent.py "List my top 5 customers by recent invoice activity."
python/examples/priority-erp-agent/.