// Webhook
{
name: "getUserInfo",
description: "Retrieves user information from the database using their email.",
webhook: "https://api.example.com/user",
header: {
"Content-Type": "application/json",
"Authorization": "Bearer your_access_token"
},
params: [
{
name: "email",
type: "string",
description: "The user's email that you collect during the conversation.",
required: true
}
]
};
// Web Form
{
name: "open_email_form",
description: "Trigger a web form for user to enter contact details.",
type: "web_form",
data: {
param: {
name: "email",
type: "string",
description: "Collect user's email info.",
required: true
}
}
};