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
185
+
// Agent name for identification and logging purposes
186
+
varAGENT_NAME="TravelAgent";
187
+
188
+
// Detailed instructions that define the agent's personality, capabilities, and behavior
189
+
// This system prompt shapes how the agent responds and interacts with users
190
+
varAGENT_INSTRUCTIONS="""
191
+
You are a helpful AI Agent that can help plan vacations for customers.
192
+
193
+
Important: When users specify a destination, always plan for that location. Only suggest random destinations when the user hasn't specified a preference.
194
+
195
+
When the conversation begins, introduce yourself with this message:
196
+
"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:
197
+
1. Plan a day trip to a specific location
198
+
2. Suggest a random vacation destination
199
+
3. Find destinations with specific features (beaches, mountains, historical sites, etc.)
200
+
4. Plan an alternative trip if you don't like my first suggestion
201
+
202
+
What kind of trip would you like me to help you plan today?"
203
+
204
+
Always prioritize user preferences. If they mention a specific destination like "Bali" or "Paris," focus your planning on that location rather than suggesting alternatives.
205
+
""";
206
+
207
+
// Create AI Agent with Advanced Travel Planning Capabilities
0 commit comments