Anupkjha2601 / food-recipes-website

here i created a food store web app named food Recipe helps the customer to find good food in cheap rates and genuine foods. https://delightful-beach-00b073d10.1.azurestaticapps.net
https://anupkjha2601.github.io/food-recipes-website/
MIT License
80 stars 161 forks source link

Add AI Bot with Alan AI for Recipes and Food Ingredients #639

Closed Nishitbaria closed 1 year ago

Nishitbaria commented 1 year ago

We propose to enhance our project by integrating an AI bot powered by Alan AI to provide users with information about recipes and food ingredients. The AI bot will be able to answer user queries about the ingredients of a specific food item. Here's how the functionality will work:

  1. User Interaction: When a user asks about the ingredients of a particular food item, the Alan AI bot will capture the item name from the user's input using p.ITEM.value.

  2. Forming API Request: Using the captured item name, Alan AI will construct a URL to send a request to a food API. The URL will be designed to fetch relevant data about the requested food item.

  3. Requesting Food API: Alan AI will initiate the API request using the constructed URL and wait for the response from the food API.

  4. Extracting Ingredients: Upon receiving the API response, the AI bot will parse the data and extract the ingredients values from the response object.

  5. Creating Ingredients Array: The AI bot will create an array called "ingredients" to store the extracted ingredients values.

  6. Playback to User: Finally, the AI bot will read out the list of ingredients stored in the "ingredients" array to the user, providing them with the necessary information about the requested food item.

Benefits of Adding the AI Bot:

  1. Enhanced User Experience: The AI bot will provide users with a more interactive and conversational experience, making it easier for them to obtain information about recipes and food ingredients.

  2. Real-Time Data: By making requests to a food API, users will receive up-to-date and accurate information about the ingredients of the food items they inquire about.

  3. Time-Saving: With the AI bot's quick responses, users can quickly access ingredient details without the need for manual searches or browsing.

  4. Improved Engagement: The AI bot's ability to read out the ingredients list will engage users through audio interaction, offering a novel and user-friendly experience.

Next Steps:

  1. API Integration: We will research and select a suitable food API to fetch recipe and ingredient data based on user queries.

  2. Alan AI Integration: The Alan AI SDK will be integrated into our project, enabling the AI bot to capture user inputs and perform API requests.

  3. Response Handling: We will implement the logic to process API responses, extract ingredient information, and push it into the "ingredients" array.

  4. Playback Functionality: The AI bot will be configured to play back the ingredients list to the user in a clear and understandable manner.

  5. Testing and Validation: Before deployment, thorough testing will be conducted to ensure that the AI bot functions accurately and provides the desired results.

Screenshots

image image

We are excited about this feature addition, which will significantly improve the user experience on our platform. Your collaboration and feedback on this enhancement will be invaluable, and we look forward to bringing this AI-powered functionality to our users soon.

Nishitbaria commented 1 year ago

@Anupkjha2601 ,please assign this issue to its a very much needed issue

Nishitbaria commented 1 year ago

@Anupkjha2601 ,please assign this issue to its a very much needed issue