How to Create a Contact Form
Table of Contents
Creer Formulaire Contact #
Content
The step-by-step tutorial: #
The CKODA platform gives endless possibilities to the users. We are going to build a simple contact form with an email address, a fallback and the client message. We will also give customers the opportunity to modify their message before sending it (because here at CKODA we do things properly đ), and we will create a confirmation message for your client.
To create a contact form, you will need to use Sessions and the email Entity that is built-in the CKODA platform. Please have a look at the two articles on the subject: here and here. And be sure to read thoroughly, as we added a little bonus just for you at the end đ
1. Email Address Intent #
Create an email Intent if you havenât done it yet. Use the built-in email Entity. We wrote a useful tutorial on Intents right here.
2. Story: Email and Message #
A. Email #
Create your Story and the first step.
Click on the new Step you just created and write your question.
Now, click on âthenâ and add a connection. Set it on the email Intent you created at the beginning and link it to your next Step.
Email Fallback:
You canât send a contact form if the text fields are not correctly filled out. We want it to be the same on ours, so we are going to create a Fallback on the email Step.
Type the Fallback message you want the user to see and choose how many times you want it to appear.
đĄ Tip: Remember to always set a Fallback message when you use the email Entity.
Learn more about Fallbacks.
Donât forget to test your Story as you go:
B. Message
Create a âMessage**â** Step.
Link it to your next Step use an âIs setâ connection. . We called it âEndâ.
3. Modify or Send #
Click on the âEndâ Step you just created.
First, we want the user to see their message to reread it, the {{@message}} function enables the chatbot to display the userâs previous message.
Then, we ask the user if they want to send or modify their message. We use Quick Replies for this feature.
More information on Quick Replies here.
Send: Link the âEndâ button to your final Step (we called it âThanksâ). You can create it directly. Modify: Link the âModifyâ button to the previous Step, in this case âMessageâ.
Donât forget to set a Session on the userâs message or else the bot wonât remember it đ
Key: messagesent
Value: {{@message}}
Hang in there â we are almost done! đ
Now, click on the âThanksâ step we just created with our âQuick Repliesâ:
4. âThanksâ step and Message Confirmation #
The CKODA chatbot can send emails with the âEmailâ action card. Send all the information that you created with Sessions in the email body.
Here is a good formula: {{@session. (+the âkeyâ you chose previously) }}
Message Confirmation : You want your client to receive a confirmation email ? You can do it with the userâs email you stored in the Session.
We use our Session feature in the âSend toâ field.
Well done! You just created a contact form! đ
Was this article helpful? #
Need Support?
Canât find the answer youâre looking for? Donât worry weâre here to help!