DataMagik Automate
DataMagik Automations Guide
Create browser-based automations that trigger actions from any web page using the DataMagik Automate browser extension.
Table of Contents
- Overview
- Getting Started
- Creating Automations
- Action Types
- Questions & User Input
- Parameter Configuration
- Permissions & Roles
- Browser Extension
- Use Cases
- Best Practices
1. Overview
DataMagik Automations extends your ERP and business applications with custom actions accessible directly from your browser. When installed, the DataMagik Automate browser extension adds custom buttons and actions to web pages based on the automations you configure.
Key Features:
- Browser Integration — Adds buttons to existing web applications
- Context-Aware — Actions can use URL parameters from the current page
- Ten Action Types — Navigation, webhooks, scripts, AI chat, table lookups, screens, dashboards, Shop Floor pace strips, AI agents, and hover cards
- Questions System — Prompt users for input before executing actions
- Permission-Based — Control who can access which automations
- Parameter Passing — Pass data from page URLs to automation endpoints
2. Getting Started
Prerequisites
- DataMagik Account — Access to the DataMagik platform
- Browser Extension — DataMagik Automate installed in Chrome/Edge
- Permissions — Appropriate permissions to create automations
Installation Steps
- Navigate to DataMagik → Automations
- Install the DataMagik Automate browser extension (see Section 8)
- Configure the extension with your DataMagik credentials
- Create your first automation
3. Creating Automations
Step 1: Navigate to Automations
Go to DataMagik → Automations in the main menu.
Step 2: Click "Add Automation"
Click the Add Automation button in the top right.
Step 3: Configure Automation
| Field | Description | Example |
|---|---|---|
| Automation Name | Display name for the button | Print Shipping Label |
| Description | What this automation does | Generates and prints a shipping label |
Step 4: Add Screens
Link the automation to specific screens (URLs) where the button should appear. Screens are matched by URL pattern, so the automation button only shows on relevant pages.
Step 5: Add Actions
After creating the automation, click Edit to add one or more actions.
4. Action Types
Each automation can have one or more actions. Choose the type from the action's type list. There are ten action types:
| Type | What it does |
|---|---|
| 🔗 Navigation | Opens a URL |
| 🌐 Webhook | Calls an API endpoint |
| 📜 Script | Runs a Script Engine script |
| 💬 AI Chat | Opens an AI chat with the page's context |
| 📋 Table Lookup | Looks up data in a lookup table |
| 📱 Screen | Shows DataMagik applications on the extension screen |
| 📊 Dashboard | Shows dashboards on the extension screen |
| 🏭 Shop Floor Pace Strip | Shows the pace row for the workcenter the screen is about |
| 🤖 Run an AI Agent | Hands the moment to an AI agent (only when your plan includes AI Agents) |
| 🪪 Hover Card (Beta) | Shows a pop-up card when a user hovers a matching link |
4.1 Navigation Actions
Navigate to a URL in a new window, tab, or the current window.
| Field | Description |
|---|---|
| Navigation URL | The URL to navigate to |
| Open in new window | Opens in a pop-up window |
| Open in new tab | Opens in a new browser tab |
| Copy current params | Pass URL parameters from current page |
| Environment-aware redirect | Handles domain switching between environments |
4.2 Webhook Actions
Call an external API or internal webhook endpoint.
| Field | Description |
|---|---|
| Webhook URL | The endpoint to call |
| Authentication Type | None, API Key, Bearer Token, or Basic Auth |
| Response Header Name | Header to capture from response |
Authentication Types:
| Type | Description |
|---|---|
| None | No authentication |
| API Key | Sent as X-API-Key header |
| Bearer Token | Sent as Authorization: Bearer <token> |
| Basic Auth | Username:password encoded in header |
4.3 Script Actions
Execute a DataMagik Script Engine script.
| Field | Description |
|---|---|
| Script Template | Select from available scripts |
| Description | What the script does |
| Parameters | Values to pass to the script |
The script receives parameters in the context object:
function main(context) {
const orderId = context.orderId;
const customerId = context.customerId;
const order = tables.get("orders", orderId);
documents.generate("Order Summary", order);
return { success: true };
}4.4 AI Chat Actions
Open an AI chat with context from the current page.
| Field | Description |
|---|---|
| Backend | DataMagik Assistant (native) runs on one of your company's AI assistants; External n8n Webhook sends the chat to an n8n workflow |
| Assistant | Native backend: which AI assistant answers (see Managing AI Assistants) |
| n8n Webhook URL | n8n backend: the webhook to call, with its authentication type |
This allows users to interact with AI assistants while providing relevant context from their current work. An AI Chat action cannot be combined with other action types in the same automation.
4.5 Table Lookup Actions
Look up data from User Defined Tables and display results or pass them to subsequent actions.
| Field | Description |
|---|---|
| Table Name | User Defined Table to query |
| Lookup Key | Key field mapped from URL parameters |
| Display Fields | Which fields to show in results |
Table lookup actions are useful for displaying customer settings, product information, or any reference data stored in User Defined Tables directly from the browser extension.
4.6 Screen Actions
Show DataMagik Applications on the extension screen. Save the action first, then edit it to link applications.
| Field | Description |
|---|---|
| Linked Applications | Use Link Application to add applications built in the Application Designer |
| URL Params | Map values from the current page's URL into each application |
| Control Panel | Where the application's controls sit (Toolbar, Top-right or Bottom-right) |
| Workcenter URL parameter | Optional. Only needed when the app shows a shop-floor board that should follow the screen |
This action type links automations directly to applications built in the Application Designer, allowing users to launch custom apps with context from their current page.
4.7 Dashboard Actions
Show dashboards on the extension screen and map URL values into dashboard parameters. Save the action first, then edit it and use Link Dashboard. Each linked dashboard has its own URL parameter mapping and control panel position, as with Screen actions.
4.8 Shop Floor Pace Strip Actions
Show the Shop Floor pace row for the workcenter the current Plex screen is about. Set Workcenter URL parameter to the name of the query parameter in the Plex screen's URL that carries the workcenter key (for example Workcenter_Key).
4.9 Run an AI Agent Actions
Hand what the button saw — the selected rows, question answers, parameters and the Plex screen — to an AI agent. Pick the agent's trigger from the Agent trigger dropdown; each entry reads Agent name — trigger name. The action returns straight away and the agent runs on its own. This type appears only when your plan includes AI Agents. See When AI Agents Run for how to set up the trigger.
4.10 Hover Card Actions (Beta)
Hovering a matching link on the Plex screen runs your script with that link's details and shows a Document Designer template as a pop-up card.
| Field | Description |
|---|---|
| Which links get a card | Link address (a pattern tested against the link's address), Grid column (links in the column with this header) or CSS selector |
| Lookup script | Runs on every hover; receives the link's details as context.hover and returns the data the card shows |
| Card template | The Document Designer template that draws the card |
| Width / Maximum height (px) | The card's size; taller content scrolls |
| Cache (seconds) | How long a result is reused; 0 runs the script on every hover |
| Timeout (seconds) | After this the card shows an error with Retry |
| Apply on all screens for this PCN | Fires on every Plex screen of the linked PCNs, not only the linked screens |
After saving, Test with sample context and Render card show the card exactly as the extension would.
5. Questions & User Input
Questions allow you to prompt users for input before executing an automation. This is useful when actions need additional information not available in the URL.
Adding Questions to an Automation
- Edit the automation
- Navigate to the Questions tab
- Click Add Question
Question Types
| Type | Description |
|---|---|
| Text | Free-form text input |
| Number | Numeric input |
| Select | Single selection from a dropdown |
| Multi-Select | Multiple selections from a list |
| Date | Date picker |
Question Configuration
| Field | Description |
|---|---|
| Question Text | The prompt displayed to the user |
| Parameter Name | Name used to pass the answer to actions |
| Required | Whether the user must answer before proceeding |
| Default Value | Pre-filled value |
Choices (for Select/Multi-Select)
For select-type questions, configure the available choices:
| Field | Description |
|---|---|
| Label | Display text shown to the user |
| Value | Value passed to the action when selected |
User answers are passed to actions as parameters alongside URL parameters and static values.
6. Parameter Configuration
Parameters allow automations to capture data from the current page URL and pass it to actions.
Required URL Parameters
Specify parameters that must be present in the current URL for the automation button to appear:
| Field | Description |
|---|---|
| Parameter Name | URL parameter key (e.g., order_id) |
| Description | Display name for the parameter |
Example: If you add order_id as required, the automation button will only show on pages with ?order_id=123 in the URL.
URL Parameters to Pass
Map parameters from the current URL to your action:
| Field | Description |
|---|---|
| Source | Parameter name in current URL |
| Target | Parameter name to send to action |
Example: Source: user_id → Target: userId
Static Values
Add fixed values to every request:
| Field | Description |
|---|---|
| Key | Parameter name |
| Value | Fixed value |
7. Permissions & Roles
Control who can access automations through roles and permissions.
Managing Roles
Navigate to Manage Roles (visible to users with DataMagik - Security permission).
- Click Add Role
- Enter role name and description
- Assign permissions to the role
- Save
Assigning Permissions to Automations
- Edit an automation
- Go to the Permissions tab
- Select which roles can access this automation
- Save
User Role Assignment
Assign roles to users in the User Management section to control their automation access.
8. Browser Extension
The browser extension displays automation buttons on web pages.
Installation
- Go to the Chrome Web Store or Edge Add-ons
- Search for "DataMagik Automate"
- Click Add to Chrome / Add to Edge
- Pin the extension for easy access
Configuration
- Click the extension icon in your browser
- Enter your DataMagik credentials
- Configure settings
Using the Extension
- Navigate to a web page with matching URL parameters
- Automation buttons appear in the extension popup
- Click a button to execute the automation
- If questions are configured, answer them before execution
- View results in notifications or new windows
9. Use Cases
Use Case 1: Print Labels from ERP
Scenario: Add a "Print Label" button to your ERP's order detail page.
Setup:
- Create automation: "Print Shipping Label"
- Add required parameter:
order_no - Add webhook action with printer endpoint
- Map
order_no→orderNumber
Result: When viewing an order in your ERP (?order_no=12345), clicking the button triggers label printing.
Use Case 2: Generate Report in New Tab
Scenario: Open a custom report page with context from current view.
Setup:
- Create automation: "View Sales Report"
- Add navigation action opening in a new tab
- Map
customer_id→customerId
Result: Opens sales report for the current customer in a new tab.
Use Case 3: Execute Script with User Input
Scenario: Run a data sync script where the user selects the target warehouse.
Setup:
- Create automation: "Sync Inventory"
- Add a select question: "Select Warehouse" with warehouse options
- Add script action: "Inventory Sync Script"
- Map the question answer to the script parameter
Result: User selects a warehouse, then the sync script runs with that selection.
Use Case 4: Multi-Step Automation
Scenario: Print label AND open tracking page in one click.
Setup:
- Create automation: "Ship Order"
- Add webhook action (print label)
- Add navigation action (open tracking)
Result: One button click prints the label and opens the tracking page.
10. Best Practices
Naming Conventions
- Be descriptive — "Print Shipping Label" not "Print"
- Use verbs — Start with action words (Print, Generate, View, Sync)
- Include context — "Print Order Label" not just "Print Label"
Security
- Use authentication — Always secure webhook endpoints
- Limit permissions — Only grant access to necessary roles
- Use Bearer tokens — Rotate tokens periodically
- Review regularly — Audit automation access periodically
Parameter Design
- Keep it simple — Only require necessary parameters
- Use consistent naming — Match parameter names across automations
- Document parameters — Add descriptions for clarity
Questions
- Use select types when possible — Reduces user input errors
- Set default values — Pre-fill common answers
- Mark required carefully — Only require what's truly needed
Testing
- Test with valid URLs — Verify buttons appear correctly
- Test authentication — Confirm webhooks authenticate properly
- Test edge cases — Missing parameters, network errors
- Test permissions — Verify role-based access works