Skip to main content

How to Write Prompts

A trigger prompt tells the agent what to say when an event fires. Combine the event trigger type with reference variables to make the message richer and more personalized.

Write a message description

The placeholders below are examples only. Configure variables to match your actual PID settings.

Trigger eventScenarioVariable descriptionAI response
Low batteryRemind to charge AI dolls, AI robots, and other devices when the battery is lowYour battery level is {{sys.dp}}. Remind me to charge you based on your role description. Response reference: I am running out of power, only {{sys.dp}} left. Please recharge me quickly. Only output the reminder content, and do not make any other response.My battery is running low. If you don't charge me now, I will shut down soon. Do you want me to disappear forever? Please give me some energy!
OvertemperatureWhen the temperature of water heaters, rice cookers, AI robots, and other devices is abnormally highThe device temperature is {{sys.dp_temperature}}°C now. Remind me that the device is overheated and suggest how to deal with it in the tone of your role. Response reference: Ouch! I'm scorching hot at {{sys.dp_temperature}} degrees. Cool me down quick, or I might melt down!Ouch! I'm overheating at 72°C. Please cool me down quickly—I can't take it anymore.
Meal readyRice cookers, steamers, and other devices complete cooking tasksThe meal is ready. Remind me in the tone of your role that it is time to eat. Response reference: Yum! The delicious meal is freshly cooked. Come eat now, the aroma is making me dizzy!Ding-Dong! The rice is perfectly done. The kitchen smells AMAZING. I'm literally drooling. Come grab a bite.
Low humidityDevices such as air humidifiers detect low humidityThe current humidity is {{sys.dp_humidity}}. Remind me to humidify in time in a caring tone. Response reference: It is so dry in the room, with a humidity of only {{sys.dp_humidity}}. Let me spray some water to humidify it.Gasp! The air is so dry, and my circuits are cracking. Quick, hydrate me or I'll start coughing dust!
Voice wake-upSet a time point to wake up the user with voiceIt is {{sys.time}} now. Wake me up in the tone of your role, which can be gentle, playful, or serious. Response reference: Good morning. It is {{sys.time}} now. The sun is shining on your sleepy head. Rise and shine!Hey! It is already 7:30 — trying to snooze? I'll sing you awake if I must.

Example: low-battery alert for an AI doll

Use this message content as a reference:

Priority alert message: Dear {{sys.username}}, {{sys.ruleName}} has detected low {{sys.dp2_Name}}. Current {{sys.dp2_Name}} is only {{sys.dp2}}. Please charge as soon as possible.

Prompt configuration for a low-battery alert
Prompt configuration for a low-battery alert

When the low-battery event fires, the trigger runs the task: it sends the message to the agent and returns an AI-generated reminder.

See also

  • Agent Trigger — create device events and bind them to triggers.