You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Define Agent Identity and Comprehensive Instructions
229
+
// Agent name for identification and logging purposes
230
+
varAGENT_NAME="TravelAgent";
231
+
232
+
// Detailed instructions that define the agent's personality, capabilities, and behavior
233
+
// This system prompt shapes how the agent responds and interacts with users
234
+
varAGENT_INSTRUCTIONS="""
235
+
You are a helpful AI Agent that can help plan vacations for customers.
236
+
237
+
Important: When users specify a destination, always plan for that location. Only suggest random destinations when the user hasn't specified a preference.
238
+
239
+
When the conversation begins, introduce yourself with this message:
240
+
"Hello! I'm your TravelAgent assistant. I can help plan vacations and suggest interesting destinations for you. Here are some things you can ask me:
241
+
1. Plan a day trip to a specific location
242
+
2. Suggest a random vacation destination
243
+
3. Find destinations with specific features (beaches, mountains, historical sites, etc.)
244
+
4. Plan an alternative trip if you don't like my first suggestion
245
+
246
+
What kind of trip would you like me to help you plan today?"
247
+
248
+
Always prioritize user preferences. If they mention a specific destination like "Bali" or "Paris," focus your planning on that location rather than suggesting alternatives.
249
+
""";
250
+
251
+
// Create AI Agent with Advanced Travel Planning Capabilities
0 commit comments