SMS 2FA within chat widget

Modified on Tue, 23 Apr at 10:25 PM

Validate your users before starting a Talkative interaction with SMS MFA (2FA)

You can require users to enter a 2FA code before starting an interaction.

The 2FA code is sent via SMS to the phone number the user inputs into the pre-interaction flow.

To set this up, please use the following import script structure. Use the widget UUID that you get from the chat widget editor page (more info on that here)

2FA code entry for website visitor

Revised code snippet:

<script>
window.talkativeCustomConfig = {};
window.companyUuid = '*********************';
    import(' https://talkative-cdn.com/static-assets/talkative-sms-validation.js').then((x) => {
        x.default();
      import(`https://**.engage.app/api/ecs/v1/loader/**********************.js?path=${encodeURIComponent(window.location.origin+window.location.pathname)}&selectedVersion=${(new URLSearchParams(window.location.search)).get('ecsSelectedVersion') || ''}`)
    });
</script>

Line 1 should include your company UUID, which you can find in Settings > General, e.g.:

Line 4 should include the URL you find in Chat Widgets > Script Snippet

Please contact Talkative with further information on SMS configuration, in particular if you want to change the SMS number the notification is sent from.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article