Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created January 12, 2024 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sendbird-community/bf9290e2455e97ea8e8b1ee87894e0b0 to your computer and use it in GitHub Desktop.
Save sendbird-community/bf9290e2455e97ea8e8b1ee87894e0b0 to your computer and use it in GitHub Desktop.
app.post("/hand_off", async(req, res) => {
console.log(req.body)
const channelUrl = req.body.channel_url
try {
res.status(200).send({"message":"handing over to a human. Just a minute please."})
} catch (e){
res.status(400).send({"error":true, "message":"Failed to perform hand over"})
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment