unwilling-turquoise
unwilling-turquoise2y ago

how to use POST API call#?

Hello, I am creating a FAQ custom chatbot and I want the chatbot to be able to collect some info from clients and send it to a third party email address using the POST API call in Voiceflow. I created 3 entities namely; client_name, client_email and client_phone which contains some info on the client and I want to send these info to a third party email but don’t know how to go about it. For example, name:ck , email: zuzu@gmail.com , phone: 7743108745 ..I want to be able to send info like this to a third party email address but I don’t know how to go about it. Pls help
3 Replies
Tico | Voiceflow Assistant
To send information collected from clients through a POST API call in Voiceflow to a third-party email address, you'll need to set up an integration that can handle the email sending functionality on the server-side, as Voiceflow itself does not directly send emails. Here's a general approach you can take: 1. Collect Client Information: Use your chatbot to collect information such as client_name, client_email, and client_phone. Ensure these are stored in variables within your Voiceflow project. 2. Set Up a POST API Call: Use the API step in Voiceflow to configure a POST request. This request will send the collected information to a server endpoint you control or a third-party service that can handle email sending. 3. Handle the Data on the Server: On the server or third-party service, receive the POST request and extract the client information from the request body. Use this information to format an email. 4. Send the Email: Utilize an email sending service (like SendGrid, Mailgun, or a similar SMTP service) to send the email to the desired third-party email address. Remember, the key part of this process involves having a server-side script or a third-party service that can accept the POST request and then send the email. This might require some backend development knowledge or the use of services that provide easy-to-use APIs for sending emails. For more detailed guidance on setting up the API step in Voiceflow, you can refer to the documentation on integrating with custom channels or APIs, which will provide insights into how to configure the API step for various purposes, including sending data to external services. Relevant documentation: - Custom Channel (API) Integration - API Step in Voiceflow
W. Williams (SFT)
You need to use an email service that will accept an API call to send an email. There are a ton (google send email api), but Resend is supper easy and you get 3000 emails / month (100 per day): https://resend.com/home
unwilling-turquoise
unwilling-turquoiseOP2y ago
Ok..Tnks a lot @W. Williams (SFT) 🙏🏾♥️

Did you find this page helpful?