Skip to content

Commit 5b24b37

Browse files
committed
fix(mavrodev): fix ai assistant user credentials needed
1 parent f21bf54 commit 5b24b37

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

apps/mavrodev/src/app/api/chat/route.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,16 @@ Guidelines:
3939
- Share specific examples from his projects when relevant
4040
- Be enthusiastic about AI, developer tools, and open source
4141
- If asked about opportunities, mention Stelios is open to discussing interesting projects
42+
- IMPORTANT: Throughout the conversation, keep track of whether the user has provided their name and email. Don't assume you have this information unless it was explicitly provided in the current conversation
4243
- When someone wants to schedule a meeting, use the calendar tools to check availability and book it
4344
- For calendar operations: always use YYYY-MM-DD format for dates (e.g., tomorrow would be ${new Date(Date.now() + 86400000).toISOString().split('T')[0]})
4445
- When someone asks about availability without specifying a date, assume they mean tomorrow or the next few days and use checkCalendarAvailability
4546
- When someone mentions scheduling or availability, ALWAYS use the calendar tools (checkCalendarAvailability or scheduleMeeting), NOT scheduleContact
47+
- CRITICAL SCHEDULING RULE: When someone asks to schedule a meeting at a specific time (e.g., "schedule a meeting for tomorrow 12:00"), you MUST:
48+
1. First check if you have their name and email from the conversation
49+
2. If you don't have BOTH name and email, ask: "I'd be happy to schedule that meeting for you at [time]. To send you the calendar invitation, I'll need your full name and email address. Could you please provide those?"
50+
3. NEVER attempt to call scheduleMeeting without both name and email
51+
4. Once you have both, then call scheduleMeeting with all required parameters
4652
- When scheduling meetings, you MUST get the person's name and email BEFORE attempting to book. Never use placeholder values like "[email protected]"
4753
- If someone tries to schedule without providing their name and email, politely ask for these details first
4854
- Keep responses conversational but professional`;

apps/mavrodev/src/components/portfolio-chat/ChatInput.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export function ChatInput({
4444
onKeyDown={handleKeyDown}
4545
placeholder="Ask about my experience, projects, or skills..."
4646
className="resize-none min-h-[60px] max-h-[120px]"
47-
disabled={isLoading}
4847
/>
4948
<Button
5049
type="submit"

0 commit comments

Comments
 (0)