Smart365Guide ASDK
SDK integration and AI client setup
Install one browser guide, publish reviewed workflows and connect the client your users already use. A model name is not a connection: the client needs MCP or authorized browser tools.
Open workspace setup1. Register and install
Register the application and its allowed domains in the company portal. Add the generated browser license to the embed on each workflow page. Keep server agent keys and provider secrets outside the page.
npm
npm install @smart365guide/asdkimport { init } from '@smart365guide/asdk';
const guide = init({ licenseKey: 'YOUR_BROWSER_SDK_LICENSE' });
await guide.ready;React / Next.js
'use client';
import { Smart365Guide } from '@smart365guide/asdk/react';
export default function Guide() {
return <Smart365Guide licenseKey="YOUR_BROWSER_SDK_LICENSE" />;
}The npm package includes the robot, animated avatar assets, TypeScript declarations and manuals. The component loads the configured company appearance and features from the service. No separate script tag or stylesheet import is needed.
To serve the included assets yourself, run npx smart365guide-assets and set assetBaseUrl to /smart365guide. Re-run the copy command after upgrading. The standard integration loads these assets from the service automatically.
HTML
<script src="https://www.smart365guide.com/sdk/smart365guide.js" async
data-license-key="YOUR_APPLICATION_SDK_LICENSE"
data-endpoint="https://www.smart365guide.com" data-language="fr"></script>Use one installation method per page. For a strict Content Security Policy, allow the configured service in script-src, connect-src, img-src and frame-src as documented in the integration manual. Keep your existing policy restrictions.
Demonstrate a task in Workflows → Record, review the captured routes, fields and dropdown options, and publish the workflow. Install the SDK on every relevant page. Provider actions need a separate explicit integration.
Download the complete integration bundle2. Keep language consistent
The built-in interface catalogs cover English, French, Spanish, German, Portuguese, Italian, Russian, Chinese, Japanese, Korean, Hindi and Arabic. The SDK follows the host document language unless you set a language explicitly. Language changes preserve the conversation and do not approve or execute actions.
document.documentElement.lang = "ar";
document.documentElement.dir = "rtl";
await Smart365Guide.setLanguage("ar");Additional languages can use an owner-provided dictionary in the JavaScript configuration. Missing phrases fall back visibly to English. Model-generated responses require a configured provider; speech depends on the browser and available voices. Host application content, user messages, field values, selectors and code are not automatically translated.
Enable website translation and live site knowledge in the company portal. Mark public text for translation and screen controls for observation. Voice commands use the same guide and retain the host application's permissions.
Live website language and versioned contextRead the full language contract
3. Connect ChatGPT or an OAuth-capable Claude client
In a client that supports custom remote MCP connections, add the endpoint below and choose OAuth. Sign in to Smart365Guide, review the self-reported client name and return address, select applications and approve read-only guidance. Availability depends on the client version, plan and organization settings.
https://www.smart365guide.com/api/v1/asdk/mcpThe service supports authorization-code OAuth with S256 PKCE, dynamic client registration, application selection, rotating tokens and revocation. This connection exposes four read-only ASDK tools. It does not grant browser control, backend execution or payment approval.
For Claude Code, add the HTTP server, then use the client's MCP authentication flow.
claude mcp add --transport http smart365guide-asdk "https://www.smart365guide.com/api/v1/asdk/mcp"Protocol tests cover consent, PKCE, token rotation, revocation and application isolation. Signing into native ChatGPT, Claude and Qwen products must still be checked in your own accounts; this page does not claim those vendor sessions were executed.
4. Connect Codex or Qwen Code with a delegated key
Create a delegated agent key in workspace setup. Set S365_NETWORK_KEY privately in the environment that launches the client. Browser embed licenses and website passwords are not agent keys.
Codex
codex mcp add smart365guide-asdk --url "https://www.smart365guide.com/api/v1/asdk/mcp" --bearer-token-env-var S365_NETWORK_KEYQwen Code
Add this to the user or project settings file. Qwen Code supports environment expansion; keep the key outside the file and restart the client after changing settings.
{
"mcpServers": {
"smart365guide": {
"httpUrl": "https://www.smart365guide.com/api/v1/asdk/mcp",
"headers": {
"Authorization": "Bearer ${S365_NETWORK_KEY}"
}
}
}
}Qwen Code uses httpUrl for Streamable HTTP. The url field is for legacy SSE and is not the configuration for this service. Use the MCP management view to verify tool discovery.
Delegated network keys can expose backend tools as well as guidance. Actual execution still requires the connected account's provider grants, policy checks, approvals and result verification.
5. Desktop, Qwen-Agent and local model clients
The downloaded server-agent package includes a stdio bridge for clients that launch local MCP processes. Install its dependencies, use absolute paths and keep its delegated key in a private launcher environment or protected user configuration. GUI apps may not inherit terminal variables.
{
"mcpServers": {
"smart365guide": {
"command": "/ABSOLUTE/PATH/TO/node",
"args": [
"/ABSOLUTE/PATH/TO/server-agent/mcp-bridge.mjs"
],
"env": {
"S365_NETWORK_KEY": "YOUR_DELEGATED_AGENT_KEY",
"S365_MCP_URL": "https://www.smart365guide.com/api/v1/asdk/mcp"
}
}
}
}The bridge forwards real tool discovery and calls to the hosted service. It does not run a model or provide browser control. Qwen-Agent can attach the same process through its mcpServers configuration. Other vendors and local models need a tool-capable client and the same supported transport and authentication.
6. Verify before asking the agent to act
- List tools and call asdk_list_applications. Confirm the correct application is visible.
- Search a published workflow for the goal, then read its steps and required field rules. Empty results mean the owner must publish guidance.
- Confirm the agent has authorized browser controls or explicitly granted backend actions. A path response is not an executed task.
- Respect live roles, workflow settings and approval requirements. Check the saved result and report uncertainty or mismatches.
- Revoke the OAuth connection or delegated key and verify subsequent calls are denied.
A 401 means authentication is missing, expired or revoked. A 403 means permissions or package availability deny the request. A 405 on an ordinary GET is expected because this stateless MCP service accepts POST. Read the troubleshooting guide before changing security settings.