Add a bot
Open the bot’s ⋯ menu (on Bot Home or in the Bots rail) and choose Add to Home Screen. The steps you see depend on where you are. On a computer (Allternit Desktop or ai.allternit.com): a QR code appears. Scan it with your phone’s camera. The page that opens shows the last steps on the phone. You can also copy the link and send it to yourself. On an iPhone, in Safari:- If you aren’t already on the bot’s own page, tap Open <bot>‘s page. Your browser adds the page you’re on, so this step makes sure you add the bot and not Allternit.
- Tap Share in the toolbar.
- Choose Add to Home Screen (scroll the list if you don’t see it), then tap Add.
What the icon does
- It shows the bot’s avatar and name. On Android the icon is the Allternit icon with the bot’s name.
- Tapping it opens the bot’s chat full screen, like an app. From there the whole Allternit app is available: back to Bot Home, other bots, chats, and Settings.
- Each bot you add gets its own icon. Add as many as you like.
- The first time you open a new icon you may need to sign in. Phones keep each Home Screen icon separate from the browser. After that it stays signed in.
- If you rename the bot, the icon keeps its old name until you add it again. Remove the old icon the way you remove any app: press and hold it, then choose Remove.
- An icon only opens the bot for the account it’s signed in to. If someone else uses your link, it opens nothing for them, and they see “That bot isn’t on this account.”
The bot’s link
Every bot has a link of the formhttps://m.allternit.com/b/<bot id>?n=<name>. The name only labels the icon. The bot that opens is chosen by the id and the signed-in account. Adding &guide=1 opens the Add to Home Screen steps on arrival (the QR code uses it).
How it works
For developers working inallternit-ai:
/b/<id>is served by a Pages Function. It returns the PWA shell with the title,apple-mobile-web-app-titleand<link rel="manifest">pointed at the bot. The bot’s manifest has its ownid(/b/<id>) andstart_url, so each bot installs as a separate app.- The phone shell opens the bot with the same calls a Bots-list tap uses (
openBotChatImmediatelythenuseStartBotSession). In a browser it also swaps the Apple touch icon for the rendered avatar. When the person leaves the bot, the page head and the address go back to the app’s own, so adding the app later adds Allternit. /b/<id>with an id the account doesn’t have shows a toast and goes to/.- The PWA service worker never stores a
/b/<id>page as the offline app shell (it would carry that bot’s name). Offline, bot pages fall back to the shell and the app names the page itself. - The m.allternit.com deploy is a separate step from merging
allternit-ai. See the deploy runbook.