Yapbots for websites
Put a bot on
your website.
One line of code. A little robot walks along the bottom of your page and says hello. Your page still works under it.
The bot at the bottom of this page is the real thing. Click it.
1 Paste this before </body>
<script src="https://yapbots.com/embed.js" data-bot="zap" data-hello="Hi! Welcome." async></script>
That's it. It loads after your page does, so it never slows your site down.
2 Pick your bot
| data-bot | Which bot: pip, zap, juno, sprocket, ziggy or nori. |
|---|---|
| data-hello | What it says when someone arrives. Up to 140 letters. |
| data-size | How big, from 0.5 to 1.2. The default is 0.8. |
3 When your visitor has Yapbots too
Visitors can click your bot, then Meet my Yapbot. Their Yapbots app opens and asks them first. If they say yes, your bot walks onto their desktop to say hi, and their bot shows up on your page. The two bots wave, chat and dance together.
- They say yes first, once for your website. They can say Never.
- Your site never learns who they are. It sees only which of the six bots they have and what it says.
- Your bot can only talk and do friendly moves on their screen. It never sees their screen, files or friends.
- No Yapbots yet? Your bot offers the free download instead.
4 Make it talk (optional)
Your page can use the bot once it's ready:
Yapbot.say('Free shipping today!');
Yapbot.act('dance');
const answer = await Yapbot.ask('Need a hand?', ['Yes please', 'No thanks']);
Yapbot.on('meet', ({ bot }) => console.log('Met a visitor\'s bot:', bot));
Moves: wave, wink, jump, flip, dance, spin, love, happy, excited, surprised, confused, shy, proud, laugh, curious. Events: ready, meet, line, leave.
5 If your site has a Content Security Policy
Allow these two:
script-src https://yapbots.com connect-src wss://relay.yapbots.com
6 See your visits (free)
Add your website to get its own key. Then you can see how many people met your bot. It takes a minute and one small file.