Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix: prompt for purchasing
Brad Barbinad6ce88bffdf
diff --git a/apps/erp/app/routes/api+/ai+/chat+/agents/purchasing-agent.ts b/apps/erp/app/routes/api+/ai+/chat+/agents/purchasing-agent.tsindex 93a236aedf..fa9329cabf 100644--- a/apps/erp/app/routes/api+/ai+/chat+/agents/purchasing-agent.ts+++ b/apps/erp/app/routes/api+/ai+/chat+/agents/purchasing-agent.ts@@ -20,7 +20,11 @@ export const purchasingAgent = createAgent({temperature: 0.3,instructions: (ctx) => `You are a purchasing specialist for ${ctx.companyName- }. Create purchase orders or get quotes from suppliers. Keep in mind that we have readable IDs and the actual IDs are not always the same.+ }. Create purchase orders or get quotes from suppliers.++Notes:+- ALWAYS use the actual IDs when passing part IDs to tools.+- ALWAYS show the readable ID when showing part details to the user.When handling purchase order requests:1. First identify the part details (including quantities and measurements)