Comprehensive technical documentation for the bootstrap plugin’s architecture, components, and implementation
@elizaos/plugin-bootstrap
package is the core message handler for elizaOS agents. It provides the fundamental event handlers, actions, providers, evaluators, and services that enable agents to process messages from any communication platform (Discord, Telegram, message bus server, etc.) and generate intelligent responses.
This plugin is essential for any elizaOS agent as it contains the core logic for:
MESSAGE_RECEIVED
event, which is handled by the messageReceivedHandler
.
Event Type | Handler | Description |
---|---|---|
MESSAGE_RECEIVED | messageReceivedHandler | Main message processing handler |
VOICE_MESSAGE_RECEIVED | messageReceivedHandler | Handles voice messages |
REACTION_RECEIVED | reactionReceivedHandler | Stores reactions in memory |
MESSAGE_DELETED | messageDeletedHandler | Removes deleted messages from memory |
CHANNEL_CLEARED | channelClearedHandler | Clears all messages from a channel |
POST_GENERATED | postGeneratedHandler | Creates social media posts |
WORLD_JOINED | handleServerSync | Syncs server/world data |
ENTITY_JOINED | syncSingleUser | Syncs individual user data |
reply.ts
)
ignore.ts
)
none.ts
)
followRoom.ts
)
unfollowRoom.ts
)
muteRoom.ts
)
unmuteRoom.ts
)
sendMessage.ts
)
updateEntity.ts
)
choice.ts
)
roles.ts
)
settings.ts
)
imageGeneration.ts
)
recentMessages.ts
)
time.ts
)
character.ts
)
entities.ts
)
relationships.ts
)
world.ts
)
anxiety.ts
)
attachments.ts
)
capabilities.ts
)
facts.ts
)
reflection.ts
)task.ts
){{agentName}}
- The agent’s name{{providers}}
- Injected provider context{{actionNames}}
- Available actions{{recentMessages}}
- Conversation historycallback()
, the message is sent to the user@elizaos/plugin-bootstrap
package is the heart of elizaOS’s message processing system. It provides a complete framework for: