Built-in Agent47 bots
Event-driven inside the existing Agent47 process. No additional services.
External bot identities
Create scoped credentials for bot code you run elsewhere.
Bot Gateway
One WebSocket, explicit scopes, no uploaded server-side JavaScript.
WEBSOCKET
wss://bots.agent47.uk/ws
Authenticate first with {"type":"bot_auth","token":"a47bot_…"}
Subscribe with {"type":"bot_subscribe","events":["MESSAGE_CREATE","MEMBER_JOIN","VOICE_STATE"]}
Send with {"type":"bot_send_message","channel":"general","text":"Hello"}
messages.read
Receive MESSAGE_CREATE events.
messages.send
Post bot messages into text channels.
members.read
Receive MEMBER_JOIN events.
voice.read
Receive VOICE_STATE events.