How to get one SI Agent Library package running in your XMPro install, from an empty database to an agent answering in chat. Each package folder holds team.json (the AI Designer import), datastreams/ (.xuc files), sql/ and SIMULATION.json; each domain’s 00_ folder holds the streams and SQL its packages share. Do the shared steps (1 to 4) once per domain, then steps 5 to 8 for each package you want.
Tested on XMPro 5.1 with MAGS Agent 2.5. Every .xuc file opens with the password Dem0nstr@t1on.
What you need
- XMPro 5.1: Data Stream Designer, AI Designer and App Designer (for the chat app)
- The MAGS Agent 2.5
.xmpuploaded in Data Stream Designer (Agents, Upload), plus the block agents listed in Block agents - A SQL Server 2017 or later database named
Masterdata(the streams read it by that name), compatibility level 130 or higher - An MQTT broker, and the Neo4j, TimescaleDB and Milvus services MAGS uses
- An OpenAI API key (the agents ship on gpt-5.4, see CHANGING-THE-MODEL.md to use another model)
1. Create the variables
The streams never hold a server name or password: every connection reads a Data Stream Designer variable. Create these in Data Stream Designer’s Variables page before importing anything (mark the passwords as encrypted):
| Variable | What it holds |
|---|---|
sql_server |
The SQL Server that holds Masterdata |
sql_xmpro_username, sql_xmpro_password |
A SQL login that can read and write Masterdata |
mqtt_broker, mqtt_port |
The MQTT broker the agents and tools talk over |
mqtt_xmpro_username, mqtt_xmpro_password |
The broker login |
The MAGS agent stream (step 7) also needs the Neo4j, TimescaleDB, Milvus, embedding and LLM variables your MAGS install already uses: neo4j_uri, neo4j_neo4j_username, neo4j_neo4j_password, timescaledb_host, timescaledb_port, timescaledb_database, timescaledb_username, timescaledb_password, milvus_url, milvus_token, memory_collection, rag_collection, embed_model, the embedding service URL, openai_api_key and otlp_endpoint.
2. Run the domain’s SQL
Run the scripts in Masterdata, in file order, from the domain’s shared folder. Each one can be run again safely.
| Domain | Folder | Scripts |
|---|---|---|
| Industrial | industrial/00_Industrial_Foundation/sql |
01_Industrial_Foundation_DDL, 02_Industrial_Synthetic_Data, 03_Industrial_Pipeline_Tests (optional check), 04_Industrial_Demo_TopUp, 05_Industrial_SOP, 06_Industrial_Submit_Action |
| Supply chain | supply-chain/00_Shared_Data_Streams/sql |
01_SC_Suite_DDL, 02_SC_Pipeline_Tests (optional check), 03_SC_Demo_Data, 04_SC_SOP, 05_SC_Submit_Action |
| IT support | it-support/IT_Support_Agent/sql |
01_IT_Support_DDL, 02_IT_Demo_Data, 03_IT_SOP |
The demo data is what lets the tools answer straight away. 04_Industrial_Demo_TopUp moves the demo dates up to today, so run it again when you demo on a later day.
3. Import the shared streams
In Data Stream Designer, Import, choose each .xuc from the domain’s shared datastreams folder (industrial/00_Industrial_Foundation, supply-chain/00_Shared_Data_Streams, or for IT support the package itself, it-support/IT_Support_Agent) and enter the password Dem0nstr@t1on. These are the tools (lookups, SOP Lookup, Submit Action) and the action pipeline every package in the domain uses. Publish each one after import.
4. Check a tool answers
Each tool stream listens on XMPRO/DATA/datastream/<tool>/in and replies on the reply_to topic in the request. A lookup with a key that doesn’t exist still answers, with not_found, so a reply of any kind shows the stream, the variables and the SQL are working.
5. Import the package’s streams
Import the package’s own .xuc files the same way (its observation stream, and for teams any extra streams), then publish them.
6. Import the team in AI Designer
- AI Designer, Teams, Import, choose the package’s
team.json. - When asked about existing items, choose Overwrite All, then Import, then Save.
- Open the team and note the agent ID AI Designer shows. AI Designer can renumber an imported agent (for example
IND-SOPGDE-AGENT-001comes in asIND-SOPGDE-AGENT-002). Use the ID it shows from here on. - Check the agent’s profile is OpenAI gpt-5.4 (System Options, Profiles) and that your OpenAI key is set.
7. Add the MAGS agent stream
Each agent runs in its own stream built on the MAGS Agent block.
- In Data Stream Designer, create a new stream (the library files them under the MAGS category) and drop the MAGS Agent block from the toolbox onto it.
- Turn on the variable options for communication, the time series database, the vector database and the LLM, and pick the variables from step 1.
- Set the four values that tie the block to your agent:
| Setting | Value |
|---|---|
Neo4jTeam |
The team ID from team.json, for example XMPRO-IND-SOPGDE-TEAM-001 |
AgentId |
The agent ID AI Designer shows (step 6) |
ClientId |
The same agent ID |
| Name | The agent’s name with its ID, for example SOP Guidance Agent (IND-SOPGDE-AGENT-001) |
- Publish the stream. The agent starts when the stream starts; the Stream Host log shows an error straight away if the team or agent ID doesn’t match the graph.
8. Allow its actions and try it
- Let the team’s agents use the action pipeline. Industrial: run the package’s
sql/02_Scope.sqlinMasterdata. Supply chain: nothing to run, every team is already indbo.SCTeamScopeanddbo.SCTeamAgentfrom01_SC_Suite_DDL. If AI Designer renumbered the agent in step 6, change or add its row with the ID it shows. - Add the people who approve actions to
dbo.IndApprover(industrial) ordbo.SCApprover(supply chain). IT support uses its own router and technician approval streams instead. - Open a chat with the agent (the AI Assistant block in App Designer, pointed at the team and agent) and ask it something its tools can answer, for example “Where is SO-10431?” for Order Status and Returns.
Block agents
The .xuc files were exported from XMPro 5.1 and use these block agents, at these versions or later. Upload any you don’t have in Data Stream Designer before importing.
| Block agent | Kind | Version |
|---|---|---|
| MQTT | Listener | 4.01 |
| MQTT | Action agent | 4.01 |
| JSON Deserializer | Transformation | 2.1 |
| Calculated Field | Transformation | 4.0 |
| Filter | Transformation | 4.1 |
| Join | Transformation | 4.01 |
| Broadcast | Transformation | 4.0 |
| SQL Server Reader | Action agent | 6.13 |
| Azure SQL | Listener | 6.12 |
| Azure SQL | Context provider | 6.12 |
| Azure SQL Writer | Action agent | 6.13 |
| Neo4j | Action agent | 1.11 |
| MAGS Agent | Agent (step 7) | 2.5 |