SMS 2FA within chat widget

Created by Seb Coulthread, Modified on Tue, 23 Apr 2024 at 10:25 PM by Seb Coulthread

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:

window.talkativeCustomConfig = {};
window.companyUuid = '*********************';
    import('').then((x) => {
      import(`https://************************.js?path=${encodeURIComponent(window.location.origin+window.location.pathname)}&selectedVersion=${(new URLSearchParams('ecsSelectedVersion') || ''}`)

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 atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article