As a jumping-off point, we will create a custom Shakespeare elizaOS agent with a custom personality and Discord integration
src/character.ts
in your editor. You’ll see the default character template. Let’s transform this into our Shakespeare agent. For design concepts, see Personality and Behavior. For technical reference, see Character Interface.
Let’s start by updating the basic identity. Replace the name.
elizaos dev
is like elizaos start
but with enhanced logging and hot reload, perfect for debugging and testing changes in real-time.http://localhost:3000
in your browser and start chatting with Shakespeare. You should now get eloquent, Shakespearean responses instead of the default Eliza personality.
elizaos dev --port 8080
(or any port number).knowledge
: Add facts, files, or directories of information to your agenttemplates
: Create custom prompt templatesusername
: Set social media usernamesplugin-discord
so everyone can chat with the Bard in your Discord server.
.env.example
to your .env
file:
DISCORD_APPLICATION_ID=
env varDISCORD_API_TOKEN=
env var