Skip to main content

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

PlaceholderDescriptionExampleAvailability
{server_name}The name of your Discord serverGaming CommunityDiscord + Addons (API)
{current_date}The current date in YYYY-MM-DD format2025-05-21Discord + Addons (API)
{week_day}The current day of the weekFridayDiscord + Addons (API)
{member_name}The name of the user who sent the messagexxJohnSmithDiscord + Addons (API)
{member_id}The unique ID of the user who sent the message123456789012345678Discord + Addons (API)
{member_mention}@mention of the user who sent the message. Use to tag/mention the user.@JohnDiscord only
{member_roles}A comma-separated list of user's rolesUser, Premium, ModeratorDiscord only
{member_top_role}The highest role of the user in the Discord serverModeratorDiscord only
{channel_name}The name of the channel where the message was sent#generalDiscord 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.