/agents-sdk-demo

D-ID Agents SDK Demo APP

Primary LanguageJavaScript

D-ID Agents SDK Demo - Vite & Vanilla JavaScript

In the terminal, navigate to this project folder and run the following commands:

  • npm init

  • npm i vite

  • npm i @d-id/client-sdk

In the created package.json file, add the following to the scripts object:

  • "dev": "vite --port 3000"

Fetch the data-client-key and the data-agent-id as explained on the Agents SDK Overview Page.
Paste these into their respective variables at the top of the main.js file and save.

In the terminal, run npm run dev

Open http://localhost:3000/