Prefill information the user has already provided not working
Hello!
My issue is with "prefill". I have added "prefill", but it's not working.
Example:
Users starts a text by saying "My name is John and I need an appointment."
Task action:
{
"collect": {
"name": "schedule_appt",
"questions": [
{"question": "Please tell me your first name.",
"prefill": "First_name",
"name": "First_name",
"type": "Twilio.First_name"
Queries show the first name was captured correctly.
My bot will still ask for the first_name.
Not sure what I'm missing.
Thank you for your review.
Sepling
Best Answers
-
@philnash do you have any insight on this issue? 🙏🏽
-
Hey @sepling, I don't know if it's related, but your examples you are sharing have a lot of inconsistencies in the case. The "first name" field type should be "Twilio.FIRST_NAME". You also interchange between "First_name" and "first_name". I'd try to ensure that those all match up to start with.
Let me know if that helps and if not I'll look into this further.
Answers
-
Hi @sepling, great question! I have reached out to our AutoPilot team at Twilio and they have provided me with this solution. Basically there are corresponding samples trained with the fields you want to use in Prefill. Do you have a sample setup for your prefill?
An example of a sample could be something like this:
My name is {First_name} and I need an appointmentWe have a "Scenarios" section within our documentation you might find helpful here.
I hope this helps!
-
Thank you for your help.
I'm currently using statements like this in the Train section of the Task:
My name is {first_name} {last_name} and I need an appointment
My name is {first_name} {last_name} and I need an appointment at {ApptTime} on {ApptDate} -
Thank you, that was the issue.
Categories
- 83 All Categories
- 19 SIGNAL 2021
- 376 Product Discussions
- 7 Community - Announcements
- 2 Changelog
- 4 Forum UI Updates
- 8 Welcome Guide
- 6 Community - Events
- 2 Twilio Relay Developer Conference 2021 Mega Thread
- 1 External Community Events
- 25 Inspiration
- 17 Community - Other Discussions
- 1 Community- Twilio Startups