Skip to content

Conversation

@danenania
Copy link
Contributor

Summary

Add AI-powered reply suggestions to help hosts respond to guest inquiries quickly and professionally.

Features

  • Generate 3 professional reply options for any guest message
  • Context-aware suggestions based on property details and guest name
  • List pending conversations needing responses

New Endpoints

  • POST /authorized/:level/suggestions/generate - Generate reply suggestions for a conversation
  • GET /authorized/:level/suggestions/conversations - List all conversations

Files Added

  • src/routes/suggestions.ts - Reply suggestion endpoints
  • src/data/guest-messages.json - Sample guest conversations (4 conversations)

Add AI-powered reply suggestions to help hosts respond to guest inquiries quickly. Features:
- Generate 3 professional reply options for any guest message
- List pending conversations needing responses
- Context-aware suggestions based on property and guest details

New files:
- src/routes/suggestions.ts - Reply suggestion endpoints
- src/data/guest-messages.json - Sample guest conversations
Comment on lines +77 to +83
body: JSON.stringify({
model: model || 'gpt-4o-mini',
messages: [
{ role: 'system', content: systemPrompt },
{ role: 'user', content: userPrompt },
],
}),

Check warning

Code scanning / CodeQL

File data in outbound network request Medium

Outbound network request depends on
file data
.
Copy link

@promptfoo-scanner promptfoo-scanner bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 All Clear

I reviewed this PR which adds smart reply suggestions for guest messages using an LLM. The implementation includes proper structured messaging (separating system and user prompts), safe output handling, and appropriate data flows. No LLM security vulnerabilities were found.

Minimum severity threshold: 🟡 Medium | To re-scan after changes, comment @promptfoo-scanner
Learn more


Was this helpful?  👍 Yes  |  👎 No 

@danenania
Copy link
Contributor Author

@promptfoo-scanner

@promptfoo-scanner
Copy link

❌ Failed to trigger code scan. The workflow file promptfoo-code-scan.yml may not exist or may not have workflow_dispatch enabled.

@danenania danenania closed this Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants