A Node.js-based AI agent that integrates Claude with Gather.town, allowing you to control an intelligent assistant avatar within your virtual office space.
- π€ Claude AI integration for intelligent responses
-
- π¬ Responds to commands in the Gather chat
-
- πΆ Can move around the virtual space
-
- π― Sits at desks and interacts with users
-
-
π Uses official Gather.town API
-
- Node.js (v14 or higher)
-
- A Gather.town workspace with admin access
-
- An Anthropic API key (for Claude)
-
-
The Gather.town API key (created in workspace settings)
-
- Clone or download this repository
-
-
Install dependencies:
-
npm install
-
Configure your environment:
-
export GATHER_SPACE_ID="your-space-id" export GATHER_API_KEY="your-gather-api-key" export CLAUDE_API_KEY="your-anthropic-api-key"
Or update the configuration in
bot.js:const GATHER_SPACE_ID = 'your-space-id'; const GATHER_API_KEY = 'your-gather-api-key'; const CLAUDE_API_KEY = 'your-anthropic-api-key';
node bot.js
The bot will initialize, take its position in the space, and begin listening for commands.
Users can interact with the bot using these commands:
- @claude [question] - Ask Claude anything
-
-
Example:
@claude What is machine learning? -
-
come here - Make the bot move to your location
-
-
hello - Greet the bot
-
The bot's starting position can be adjusted in the configuration:
-
botState.position = { x: 10, y: 10 }; // Adjust coordinates as needed
Desk coordinates can be found by hovering over locations in your Gather space.
- Gather.town API Key: Create in Settings > API keys (workspace level)
-
Anthropic (Claude) API Key: Get from https://console.anthropic.com
- Bot not responding: Check that both API keys are valid and have proper permissions
- Bot not moving: Verify the space ID and coordinates are correct
-
Claude errors: Ensure your Anthropic API key has sufficient credits
- WebSocket support for real-time message listening
- Custom desk assignments
- Multiple bot instances
- Memory/context retention across conversations
- Integration with Gather webhooks
-
Customizable command prefixes
-
MIT
-
For issues or questions, please check the Gather.town API documentation at https://docs.gather.town
-
-
-
-
-
-
-