Spaces:
Sleeping
Sleeping
added welcome message to return in info gateway
Browse files- app/chatbot/demo_routes.py +1 -0
- app/chatbot/prod_routes.py +1 -1
app/chatbot/demo_routes.py
CHANGED
|
@@ -78,6 +78,7 @@ async def demo_chatbot_info(submission_id: str):
|
|
| 78 |
"website_url": config.get("website_url"),
|
| 79 |
"chatbot_purpose": config.get("chatbot_purpose"),
|
| 80 |
"sensitive_topics": config.get("sensitive_topics"),
|
|
|
|
| 81 |
}
|
| 82 |
|
| 83 |
@router.post("/faq/{submission_id}")
|
|
|
|
| 78 |
"website_url": config.get("website_url"),
|
| 79 |
"chatbot_purpose": config.get("chatbot_purpose"),
|
| 80 |
"sensitive_topics": config.get("sensitive_topics"),
|
| 81 |
+
"welcome_message": config.get("welcome_message")
|
| 82 |
}
|
| 83 |
|
| 84 |
@router.post("/faq/{submission_id}")
|
app/chatbot/prod_routes.py
CHANGED
|
@@ -99,7 +99,7 @@ async def prod_chatbot_info(chatbot_id: str):
|
|
| 99 |
@router.get("/info/faq/{chatbot_id}")
|
| 100 |
async def prod_faq_info(chatbot_id: str):
|
| 101 |
"""
|
| 102 |
-
|
| 103 |
"""
|
| 104 |
config = prod_chatbot_configs.find_one({"chatbot_id": chatbot_id})
|
| 105 |
if not config:
|
|
|
|
| 99 |
@router.get("/info/faq/{chatbot_id}")
|
| 100 |
async def prod_faq_info(chatbot_id: str):
|
| 101 |
"""
|
| 102 |
+
Returns FAQs
|
| 103 |
"""
|
| 104 |
config = prod_chatbot_configs.find_one({"chatbot_id": chatbot_id})
|
| 105 |
if not config:
|