Configuration
Setup wizard, API keys, Azure Key Vault, and permission configuration for Smart Agents
After installing the Smart Agents extension, complete the initial configuration using the Setup Wizard. This page covers each step of the wizard and additional configuration options.
Setup Wizard
The Setup Wizard launches automatically after installation. If it does not appear, search for "Smart Agents Setup" in the Business Central search bar.
The wizard guides you through four steps:
Step 1: API Connection
Connect the extension to the Smart Agents API.
- API Base URL — Enter the API endpoint. For cloud customers, use:
https://api.agent.net.ai/v1 - API Key — Enter your API key from the Smart Agents Portal. Keys start with
sa_live_for production orsa_test_for sandbox environments - Click Test Connection to verify the settings
- If the test succeeds, proceed to the next step
If the connection test fails:
- Verify the API key is correct and has not been revoked
- Check that outbound HTTPS to
api.agent.net.aiis allowed - For on-premises, ensure the BC server can reach the API endpoint
Step 2: Credential Storage
Choose how to store the API key:
Option A: Business Central (Default)
The API key is stored encrypted in the Smart Agents Setup table within Business Central. This is the simplest option and is suitable for evaluation and small deployments.
Option B: Azure Key Vault (Recommended for Production)
Store the API key in Azure Key Vault for centralized credential management.
-
Create a Key Vault secret:
- Secret name:
SmartAgentsApiKey - Secret value: Your API key (e.g.,
sa_live_xxxxxxxxxxxxxxxxxxxx)
- Secret name:
-
In the Setup Wizard, select Azure Key Vault and enter:
- Key Vault URI:
https://your-vault-name.vault.azure.net/ - Secret Name:
SmartAgentsApiKey
- Key Vault URI:
-
Grant access to the Business Central application:
- In the Azure portal, navigate to your Key Vault
- Under Access policies, add a new policy
- Grant Get and List permissions for secrets
- Select the Business Central service principal as the authorized application
For SaaS environments, Business Central has built-in Azure Key Vault integration. See the Microsoft documentation on configuring Key Vault for BC extensions.
Step 3: Organization Settings
Configure organization-wide defaults:
- Organization Name — Your company name as displayed in Smart Agents
- Default Model — The AI model tier used for new agents (Fast, Smart, Expert, or Premium)
- Default Data Retention — How long conversations are retained (30, 60, 90, 180, or 365 days)
- Telemetry — Enable or disable anonymized usage telemetry
Step 4: User Registration
Register Business Central users with Smart Agents:
- The wizard displays a list of all BC users with email addresses
- Select the users who should have access to Smart Agents
- Set an initial credit allocation for each user (or accept the default)
- Click Register to create Smart Agents accounts for the selected users
Users are matched by email address. Each registered user will receive an email confirmation.
After completing all four steps, click Finish to save the configuration.
Post-Setup Configuration
Permission Sets
Assign Smart Agents permission sets to users:
- Navigate to Users in Business Central
- Select a user
- Under User Permission Sets, add one of:
- SMART AGENTS USER — Standard chat and agent access
- SMART AGENTS ADMIN — Full administrative access
Users need both Smart Agents registration (from Step 4) and the appropriate permission set to access the extension.
Data Access Policies
Configure which Business Central data agents can access:
- Search for "Smart Agents Data Access" in the Business Central search bar
- Click New to create a policy
- Configure the policy:
- Name — A descriptive name (e.g., "Finance Team Access")
- Tables — Select which BC tables the policy grants or restricts
- Fields — Optionally exclude sensitive fields (e.g., cost prices)
- Mode — Choose Allow (whitelist) or Deny (blacklist)
- Assign the policy to users or user groups
Model Configuration
Configure AI model settings:
- Search for "Smart Agents Model Configuration"
- Set defaults:
- Default Model — Applied when no agent-specific override exists
- Maximum Model — The highest tier any user can select
- Optionally create per-agent model overrides
- Configure model routing rules (see Administration for rule syntax)
Credit Limits
Set per-user credit limits:
- Search for "Smart Agents User Management"
- Select a user
- Set the Monthly Credit Limit
- Enable Credit Rollover if unused credits should carry to the next month
- Set a Low Balance Alert threshold to notify the user when credits are running low
Notification Settings
Configure email notifications:
- Search for "Smart Agents Notifications"
- Configure which notifications are sent:
- Low credit balance — Sent to administrators when the organization balance is low
- User registration — Sent to new users when they are registered
- Webhook failures — Sent to administrators when webhooks fail (when available)
- Set the notification email addresses
Advanced Configuration
Multiple Environments
If you use multiple Business Central environments (e.g., production and sandbox):
- Use separate API keys for each environment
- Use
sa_test_keys for sandbox environments andsa_live_keys for production - Configure separate Azure Key Vault secrets for each environment if using Key Vault
Proxy Configuration
For on-premises environments that route traffic through a proxy server:
- Search for "Smart Agents API Settings"
- Under Advanced, configure:
- Proxy URL — The proxy server address (e.g.,
http://proxy.yourcompany.com:8080) - Proxy Authentication — Enable if the proxy requires credentials
- Proxy URL — The proxy server address (e.g.,
Custom Timeout Settings
Adjust API timeout settings for slow connections:
- Search for "Smart Agents API Settings"
- Under Advanced, configure:
- Connection Timeout — Maximum time to establish a connection (default: 10 seconds)
- Request Timeout — Maximum time to wait for a response (default: 60 seconds)
For complex queries over large datasets, increasing the request timeout may be necessary.
Resetting Configuration
To reset the Smart Agents configuration and re-run the Setup Wizard:
- Search for "Smart Agents Setup"
- Click Reset Configuration
- Confirm the reset — this clears all settings but preserves user registrations and conversation history
- The Setup Wizard launches again for reconfiguration