You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@deepmodel/dm-agent-embed-pkg

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepmodel/dm-agent-embed-pkg

Easily integrate Deepmodel AI agents into your website with a floating chat button and dialog. This package allows seamless interaction with AI agents.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
3
-25%
Maintainers
0
Weekly downloads
 
Created
Source

@deepmodel/dm-agent-embed-pkg

Easily integrate Deepmodel AI agents into your website with a floating chat button and dialog. This package allows seamless interaction with AI agents.

Features

  • Simple integration with minimal setup
  • Floating chat button for easy access
  • Customizable colors to match your brand

Installation

npm install @deepmodel/dm-agent-embed-pkg

or

yarn add @deepmodel/dm-agent-embed-pkg

Usage

Using ES Module Import

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();

Using CDN

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>

Configuration Options

OptionTypeDefaultDescription
apiKeystring''API key for authentication
agentIdstring''Identifier for the chat agent
threadIdstringundefined(Optional) Thread ID for conversation tracking
primaryColorstringundefined(Optional) Primary theme color
secondaryColorstringundefined(Optional) Secondary theme color
chatContainerColorstringundefined(Optional) Background color for the chat container

Support

For any questions or issues, please open a GitHub issue.

FAQs

Package last updated on 20 Feb 2025

Did you know?

Socket

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.

Install

Related posts