Web chat
Web chat is a chat page behind Astropods sign-in. People open it from Launch or Chat. The web adapter relays each message between web chat and your agent over the Messaging SDK.
Turn on messaging
Messaging is on when agent.interfaces is absent, or when it sets messaging: true:
Once you set interfaces, messaging defaults to false, so set it to keep web chat.
Turn on web chat at deploy
Web app
CLI
On the deploy page, select web under Messaging interface.
An agent with no messaging has no adapters, and --adapter has no effect on it. For the file size limit and every other deploy setting, see Deploy a blueprint.
Who can chat with the agent
A new agent opens web chat to you.
Web app
CLI
Set access in Interface access on the deploy page, or later on the agent’s Configuration > Access page.
To open web chat with no sign-in, set public: { web: true } in the deploy file. See Access control.
Run it locally
List web under dev:
ast project start serves web chat at http://localhost:3100, or the next free port up to 3199. See Run your agent locally.
Next steps
- Slack: answer in Slack as well
- Messaging SDK: receive and answer messages in your code
- Custom app: serve your own web app as well