
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@deepmodel/dm-agent-embed-pkg
Advanced tools
Easily integrate Deepmodel AI agents into your website with a floating chat button and dialog. This package allows seamless interaction with AI agents.
Easily integrate Deepmodel AI agents into your website with a floating chat button and dialog. This package allows seamless interaction with AI agents.
npm install @deepmodel/dm-agent-embed-pkg
or
yarn add @deepmodel/dm-agent-embed-pkg
Import and initialize the floating chat button in your project:
import DmAgentEmbed from "@deepmodel/dm-agent-embed-pkg";
const chat = new DmAgentEmbed({
apiKey: "your-api-key",
agentId: "your-agent-id",
threadId: "optional-thread-id",
primaryColor: "oklch(38.3% 0.2 285)",
secondaryColor: "oklch(90% 0.06 298)",
chatContainerColor: "oklch(.967 .003 264.542)",
});
chat.init();
Include the following script in your HTML file:
<script src="https://unpkg.com/@deepmodel/dm-agent-embed-pkg@latest/dist/index.umd.js"></script>
<script>
window.addEventListener("load", function () {
DmAgentEmbed.init({
apiKey: "your-api-key",
agentId: "your-agent-id",
primaryColor: "#d90429",
secondaryColor: "#F8C9CD",
chatContainerColor: "#edf2f4",
});
});
</script>
Option | Type | Default | Description |
---|---|---|---|
apiKey | string | '' | API key for authentication |
agentId | string | '' | Identifier for the chat agent |
threadId | string | undefined | (Optional) Thread ID for conversation tracking |
primaryColor | string | undefined | (Optional) Primary theme color |
secondaryColor | string | undefined | (Optional) Secondary theme color |
chatContainerColor | string | undefined | (Optional) Background color for the chat container |
For any questions or issues, please open a GitHub issue.
FAQs
Easily integrate Deepmodel AI agents into your website with a floating chat button and dialog. This package allows seamless interaction with AI agents.
The npm package @deepmodel/dm-agent-embed-pkg receives a total of 0 weekly downloads. As such, @deepmodel/dm-agent-embed-pkg popularity was classified as not popular.
We found that @deepmodel/dm-agent-embed-pkg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.