Integrar Typebot en tu Sitio
Opciones de integración
1. Chat bubble (flotante)
Botón en esquina inferior:
<script type="module">
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js'
Typebot.initBubble({
typebot: "tu-typebot-id",
theme: {
button: { backgroundColor: "#0042DA" },
},
});
</script>
2. Embed estándar
Insertado en la página:
<script type="module">
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js'
Typebot.initStandard({
typebot: "tu-typebot-id",
container: document.querySelector("#typebot-container"),
});
</script>
<div id="typebot-container" style="height: 500px;"></div>
3. Popup
Aparece después de X segundos:
<script type="module">
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js'
Typebot.initPopup({
typebot: "tu-typebot-id",
delay: 3000, // 3 segundos
});
</script>
WordPress
- Instala plugin Insert Headers and Footers
- Pega el código en Footer Scripts
Obtener tu typebot ID
- Abre tu typebot
- Share > Get embed code
- Copia el ID del código
Webhooks
Envía respuestas a tu sistema:
- Añade bloque Webhook
- Configura URL destino
- El body incluye todas las variables