Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capablity to add dynamic fileds data in on search API #172

Open
MrSpark2591 opened this issue Nov 20, 2024 · 0 comments
Open

Capablity to add dynamic fileds data in on search API #172

MrSpark2591 opened this issue Nov 20, 2024 · 0 comments

Comments

@MrSpark2591
Copy link

MrSpark2591 commented Nov 20, 2024

Description

Please see the flow below:

Farmer Selects Advisory Services
Farmer: Advisory Services
Bot:
Great! What would you like to know about your crops?
🦠 Pest and Disease Advisory
🌦️ Weather Advisory
📋 Government Schemes
📝 Other Queries
Farmer: Pest and Disease Advisory
Bot:
Have you already identified the pest or disease affecting your crops?
✅ Yes
❌ No
Farmer: Yes
Bot:
Great! Please enter the name of the crop you're working with. For example, “Grapes” or “Tomatoes.”
(Farmer types: “Grapes”)
Bot:
Thanks! Now, please specify the pest or disease that is affecting your grapes. For example, "Powdery Mildew" or "Downy Mildew."
(Farmer types: “Powdery Mildew”)
If the Farmer says “no”:
Farmer: No
Bot:
No worries! Please share some details about the pest or disease you're encountering.
You can:
Upload a photo of the infestation 📸
Describe the issue in text ✍️
Use voice input 🎤
(Farmer uploads a photo of the infestation)
Bot:
Thank you for sharing the image! We’ll analyze this.
Here’s a list of resources that might help you manage powdery mildew on grapes.
You’ll find videos, PDFs, text-based guides, and audiobooks from trusted service providers.

Now, for the search API, we need the whole context of what the user has selected on the Whats App bot.

So on search API, we want a dynamic JSON that can be received at the BPP webhook to take certain actions based on the user's selection.

Goals

To have context on webhook what user journey is on BAP.

Expected Outcome

Support of dynamic JSON on search API.
Taking an example from above this can be similar to:
{message: "farmer's message", "type":"Pest and Disease Advisory", "crop": "grape", "disease": "Powdery Mildew",}

Here type, crop, and disease are dynamic fields that BAP might add to the search API.

Acceptance Criteria

  • [ Capability of dynamic data on search API] [Criteria 1]

Domain

[UAI] Agriculture

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

No branches or pull requests

1 participant