I am trying to create an OAuth chatbot . While the app is being added , the default chatbot message is : Unsupported type of message . I am trying for custom Welcome message , default message didnt work as well . I am seeing response 200 for the webhook endpoint .
I am using FastAPI library in Python for the webhook . My code looks something like this .
@app.webhooks.post("/welcome-webhook")
async def handle_zoom_webhook(payload: WebhookPayload):
robot_jid = payload.payload.get("robotJid")
user_jid = payload.payload.get("userJid")
user_name = payload.payload.get("userName")
account_id = payload.payload.get("accountId")
response_payload = {
"robot_jid": robot_jid,
"to_jid": user_jid,
"account_id": account_id,
"content": {
"head": {
"text": f"Welcome {user_name}!"
},
"body": [{
"type": "message",
"text": "Thank you for installing the bot. How can I assist you today?"
}]
}
}
return JSONResponse(content=response_payload, status_code=200)