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

View File

@@ -10,12 +10,15 @@ const nlsPrompt = `
"/": home "/": home
"/springboard": user dashboard "/springboard": user dashboard
"/manage-account": manage user account "/manage-account": manage user account
"/forgot-password": reset user password
"/events": events "/events": events
"/karang-guni-schedules": browse karang guni slots "/karang-guni-schedules": browse karang guni slots
"/home-bill-contest": participate in contest & earn vouchers "/home-bill-contest": participate in contest & earn vouchers
"/home-bill-contest/new-submission": submit bill "/home-bill-contest/new-submission": submit bill
"/community-posts": show posts "/community-posts": show posts
"/community-posts/create": create post "/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 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. If none matches user query, return empty route, however try your best not to.