79109979

Date: 2024-10-21 12:14:42
Score: 1.5
Natty:
Report link

Your code seems to be correct, so I assume there might be something wrong with how you're calling the flow.

In my environment, your code is working for both the Dev UI and curl POST.

enter image description here

$ curl -X POST -H "Content-Type: application/json" -d '{"data": {"question": "What is the menu suggestion for today?"}}' http://[your_firebase_function_url]/menuSuggestionFlow
{"result":{"answer":"This is the answer to your question: What is the menu suggestion for today?"}}
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yuki Nagae