Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefill pre-engagement-data #39

Open
iam-steve opened this issue May 10, 2023 · 0 comments
Open

Prefill pre-engagement-data #39

iam-steve opened this issue May 10, 2023 · 0 comments

Comments

@iam-steve
Copy link

Hello! I apologize in advance if this already possible and I'm missing something -- but is there anyway to pre-fill some of the engagement form data and skip showing the form to the user but just open the chat right on page load?

For example, if we are embedding this on a website where we already know who the user is (because they've logged in), we don't need them to fill out their name and email address again on a form as long as we could pass that info somewhere. Would be great if we can initialize the chat with those values somehow? This may be the wrong way to accomplish it, but I'm thinking something like this:

Twilio.initWebchat({
	theme: {
		isLight: true
	},
	formData: {
        friendlyName: "First_Name Last_Name",
        email: "their_email@domain.com"
        skip_engagement_form: true
    };
})

Any help is appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant