Your Vida AI phone agent can be embedded into any website so your visitors can talk or chat with your Vida Agent just like they would over the phone or sms. Here is an example code that embeds a Vida AI agent into a web page:Documentation Index
Fetch the complete documentation index at: https://vida.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Explanation of data fields
- data-target: (Required) The agent username you want to embed (required).
- data-type: (Required) “call” or “chat” depending on if you want to initiate a call or text chat with the target agent.
- data-number: (Optional) If on a mobile device, when pressing the button it will dial this number instead of initiating a call via WebRTC.
data-target parameter by visiting the Settings page if logged in.
JS File URL Location
Make sure to include the correct JS file location as shown in the example:- JS:
<script src="https://vida.io/embed/button/v1/script.js" defer />