Prompt Placeholders
Wallu allows you to customize your bot's instructions using placeholders. These placeholders are automatically replaced with actual values when the bot generates a response, making your interactions more personalized and contextually relevant.
Available Placeholders
Placeholder | Description | Example | Availability |
---|---|---|---|
{server_name} | The name of your Discord server | Gaming Community | Discord + Addons (API) |
{current_date} | The current date in YYYY-MM-DD format | 2025-05-21 | Discord + Addons (API) |
{week_day} | The current day of the week | Friday | Discord + Addons (API) |
{member_name} | The name of the user who sent the message | xxJohnSmith | Discord + Addons (API) |
{member_id} | The unique ID of the user who sent the message | 123456789012345678 | Discord + Addons (API) |
{member_mention} | @mention of the user who sent the message. Use to tag/mention the user. | @John | Discord only |
{member_roles} | A comma-separated list of user's roles | User, Premium, Moderator | Discord only |
{member_top_role} | The highest role of the user in the Discord server | Moderator | Discord only |
{channel_name} | The name of the channel where the message was sent | #general | Discord only |
If the placeholder is not available, it will be replaced with "[unknown]"
so the bot will still work.
How to Use Placeholders
You can add these placeholders to your bot's custom instructions in the Bot Settings page or per channel on the Channel Settings page. For example:
- You are a support bot called "Wallu" on Discord server {server_name}
- Greet the user only at the start of the conversation: {member_name}
- Today is {current_date} ({week_day})
When the bot responds to a user, these placeholders will be replaced with the appropriate values, creating a more personalized experience.
Tips for Using Placeholders
- Use
{member_name}
to personalize greetings - Use
{server_name}
to remind the bot which community it's serving - Use
{current_date}
and{week_day}
for event-related information or to provide date-specific responses - Combine multiple placeholders to create more dynamic and contextual instructions
These placeholders help your bot provide more accurate and personalized responses to your community members.