This project was part of the Maker Suite Sprint and creates a OCR processor to transcript FitBit User Manual PDF into a text file then uses Google Cloud Generative AI + Dialogflow to create a chatbot that answers questions about the FitBit User Manual.
Guidelines:
Clone the repo
Create a bucket
Create a processor in Document AI and run DocumentAI.py
Test prediction.py locally (Cloud Run folder)
Run gcloud builds submit --tag gcr.io/your project_id/container_name . --timeout=85000
Run gcloud run deploy container_name --image gcr.io/your_project_id/container_name --min-instances 1 --allow-unauthenticated --memory 512Mi --max-instances 1 --region us-central1
Set up Dialogflow
Run Dialogflow_add_names_entity_csv.py to populate entity names. Set up flows and choose Dialogflow Messenger in Integrations
Use chatbot_html_embed.html to add Dialogflow Messenger to your website