https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can deploy a chatbot in a website
# ❓・ai-evy-support
d
@AI Evy how can deploy a chatbot in a website?
a
Thanks for tagging me @dzei2234. I'll look through relevant sources and get back to you shortly.
### Answer You can deploy a Retell AI chatbot on your website by adding the Retell chat widget script to your HTML. [(1) ]() Add this script tag within the
<head>
section of your HTML:
Copy code
html
<script
 id="retell-widget"
 src="<https://dashboard.retellai.com/retell-widget.js%22>
 data-public-key="YOUR_RETELL_PUBLIC_KEY"
 data-agent-id="YOUR_CHAT_AGENT_ID"
></script>
Required attributes: -
data-public-key
- Your Retell public key -
data-agent-id
- Your chat agent ID Optional customization attributes include: -
data-title
- Custom chat window title -
data-logo-url
- URL of your logo image -
data-color
- Hex color code for widget theme -
data-bot-name
- Bot name for popup messages -
data-popup-message
- Popup message before users open chat -
data-auto-open
- Set to "true" to auto-open chat widget on page load The widget displays as a floating button (robot icon) in the bottom right corner. When users click it, a chat interface opens in a modal window where they can interact with your AI agent.
​ To learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy how can i remove the "Powered by Retell" statement from the chat widget?
a
Thanks for the follow-up, @dzei2234. I'll get back to you soon.
### Answer Based on the available sources, the "Powered by Retell" text cannot be removed through the standard widget settings or script tag options. [(1) ]() The chat widget only supports customization of the title, logo, and color through the script attributes. To achieve full white-label control (including removing the "Powered by Retell" branding) , you would need to use the Retell API to build your own custom launcher UI. The standard customization options available through the script tag are limited to: [(2) ]() -
data-title
- Custom chat window title -
data-logo-url
- URL of your logo image -
data-color
- Hex color code for widget theme
​ To learn more, see the sources I considered: [[1] Chat Widget Customisation](https://discord.com/channels/1186424376300679209/1387925742007881979) [[2] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy How can I get the entire chat widget conversation after each chat session?
a
Thanks for the follow-up, @dzei2234. I'll get back to you soon.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer --- ### Answer You can retrieve the entire chat widget conversation after each session using the Get Chat API endpoint. [(1) ]() The API returns comprehensive chat details including: - Full transcript - Complete conversation between agent and user - Message history with tool calls - All messages with any function/tool invocations - Chat metadata - Session information like start/end timestamps, status, and custom metadata - Chat analysis - Post-chat analysis including sentiment, summary, and success metrics Example API call:
Copy code
javascript
import Retell from 'retell-sdk';

const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;

const chatResponse = await client.chat.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(chatResponse.agent_id) ;
The response includes: -
transcript
- Full text transcript of the conversation -
message_with_tool_calls
- Detailed message array with role, content, and timestamps -
chat_status
- Current status (ongoing, ended, or error) -
start_timestamp
and
end_timestamp
- Session timing information -
chat_analysis
- Includes chat summary, user sentiment, and whether the chat was successful You can also use the List Chat API to retrieve multiple chat sessions. **
​ To learn more, see the sources I considered: [[1] Get Chat](https://docs.retellai.com/api-references/get-chat) ​