https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do I embed a ReTell chat agent into my website
# ❓・ai-evy-support
k
@AI Evy how do I embed a ReTell chat agent into my website?
a
Thanks for tagging me @kflynn_56835. I'll look through relevant sources and get back to you shortly.
The chat widget provides text-based conversations through a chat interface and is embeddable via a single script tag using the Retell public key system, allowing direct API calls from the frontend with no backend proxy required [(1) ]() [(3) ]() [(4) ]() .
### Answer To embed a Retell chat agent into your website, you need to first create a chat agent and then use the Retell Website Widget [(1) ]() . Step 1: Create a Chat Agent First, create a chat agent by navigating to the Agents section in your Retell dashboard, clicking "Create New Agent", and selecting "Chat Agent" as the agent type [(2) ]() . Alternatively, you can convert an existing voice agent by opening it and clicking "Convert to Chat Agent" . Step 2: Get Your Credentials You'll need your Retell Public Key and your chat agent ID [(1) ]() . Public Keys are designed for frontend use and are required for authorizing access to the chat widget [(3) ]() [(4) ]() . Step 3: Embed the Widget Add this script tag to your HTML within the
<head>
tag [(1) ]() :
Copy code
html
<script
 id="retell-widget"
 src="<https://dashboard.retellai.com/retell-widget.js%22>
 type="module"
 data-public-key="YOUR_RETELL_PUBLIC_KEY"
 data-agent-id="YOUR_CHAT_AGENT_ID"
 data-agent-version="YOUR_AGENT_VERSION"
 data-title="YOUR_CUSTOM_TITLE"
 data-logo-url="YOUR_LOGO_URL"
 data-color="YOUR_CUSTOM_COLOR"
 data-bot-name="YOUR_BOT_NAME"
 data-popup-message="YOUR_POPUP_MESSAGE"
 data-show-ai-popup="true"
 data-show-ai-popup-time="5"
 data-auto-open="false"
 data-dynamic='{"key": "value"}'
 data-recaptcha-key="YOUR_GOOGLE_RECAPTCHA_SITE_KEY"
></script>
​ To learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) [[2] Create chat agent](https://docs.retellai.com/build/create-chat-agent) [[3] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[4] Chat Widget, Custom Function Enhancement and more!](https://www.retellai.com/changelog/chat-widget-custom-function-enhancement-and-more) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
@AI Evy could i use the chat agent to respond to social media DMs?
a
Thanks for the follow-up, @kflynn_56835. I'll get back to you soon.
### Answer Based on the available sources, I don't have specific information about using Retell chat agents for social media DM responses. The sources focus on chatbots for text-based interfaces like websites, messaging apps, or mobile apps [(1) ]() , but don't specifically address social media platform integrations. However, one source mentions using external integrations like N8N or Make.com for custom workflows [(2) ]() , which suggests that connecting to social media platforms might be possible through external automation tools, but this would require custom development work. I don't have enough information in the available sources to provide specific guidance on social media DM integration. Would you like me to try to provide a general answer based on my knowledge instead? For more detailed information about custom integrations and possibilities, I'd recommend: - Visit [Contact Sales]() - Visit [)
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Chatbot](https://www.retellai.com/glossary/chatbot) [[2] Retell Chat Agent with pictures](https://discord.com/channels/1186424376300679209/1392033632415383622) ​