Updated new routes for AI search

This commit is contained in:
2024-08-13 13:43:32 +08:00
parent 88a4d18604
commit 6af6b4ee33
2 changed files with 7 additions and 1 deletions

View File

@@ -64,12 +64,15 @@ export default function EcoconnectSearch() {
"/": "Go home",
"/springboard": "Go to the Dashboard",
"/manage-account": "Manage your account",
"/forgot-password": "Reset your password",
"/events": "Browse events",
"/karang-guni-schedules": "Browse available Karang Guni",
"/home-bill-contest": "Take part in the home bill contest",
"/home-bill-contest/new-submission": "Submit your bill",
"/community-posts": "Browse community posts",
"/community-posts/create": "Create a post",
"/feedback": "Send feedbacks",
"/user-vouchers": "View your vouchers",
};
const getRouteDescription = (route: string) => {
@@ -152,7 +155,7 @@ export default function EcoconnectSearch() {
{aiResponseRouteDescription}
</p>
<p className="text-sm opacity-50">
https://ecoconnect.gov{aiResponseRoute}
https://ecoconnect.gov.sg{aiResponseRoute}
</p>
</div>
<Button

View File

@@ -10,12 +10,15 @@ const nlsPrompt = `
"/": home
"/springboard": user dashboard
"/manage-account": manage user account
"/forgot-password": reset user password
"/events": events
"/karang-guni-schedules": browse karang guni slots
"/home-bill-contest": participate in contest & earn vouchers
"/home-bill-contest/new-submission": submit bill
"/community-posts": show posts
"/community-posts/create": create post
"/feedback": send feedbacks / get in touch
"/user-vouchers": view vouchers user have
based on input, provide appropriate route closest to fulfilling user's needs
If none matches user query, return empty route, however try your best not to.