The AI Employee is available through our CDN as a single JavaScript file or through NPM as a React component package.
HTML
React
<script type="module">import Chatbox from 'https://cdn.jsdelivr.net/npm/@zappway/embeds@latest/dist/chatbox/index.js';Chatbox.initBubble({agentId: 'YOUR_AGENT_ID',});</script>
Documentation under construction
Attributes / Props
HTML
React
<script type="module">import Chatbox from 'https://cdn.jsdelivr.net/npm/@zappway/embeds@latest/dist/chatbox/index.js';Chatbox.initBubble({agentId: 'YOUR_AGENT_ID',// If provided will create a contact for the user and link it to the conversationcontact: {firstName: 'John',lastName: 'Doe',email: 'customer@email.com',phoneNumber: '+5511988776655',userId: '54545454',},// Override initial messagesinitialMessages: ['Hello Delano how are you doing today?','How can I help you ?',],// Provided context will be appended to the AI Employee system promptcontext: "The user you are talking to is John. Start by Greeting him by his name.",});</script>
Documentation under construction
string
required
ID of the AI Employee
string
Show properties
string
First name
string
Last name
string
Email
string
Phone number
string
Custom user ID
string array
Initial AI Employee Messages
string
Extra context that will be appended to the AI Employee system prompt