Skip to navigation

Web chat

Let people chat with your agent in Astropods web chat
View as Markdown

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:

astropods.yml
agent:
build:
context: .
dockerfile: Dockerfile
interfaces:
messaging: true

Once you set interfaces, messaging defaults to false, so set it to keep web chat.

Turn on web chat at deploy

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.

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:

astropods.yml
dev:
interfaces:
messaging:
adapters: [web]

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