Prefill information the user has already provided not working

sepling
sepling
edited June 20 in Autopilot

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

Tagged:

Best Answers

  • sbrijmohan
    sbrijmohan admin
    Accepted Answer

    @philnash do you have any insight on this issue? 🙏🏽

  • pnash
    pnash mod
    Accepted Answer

    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 appointment

    We 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.

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support