Serviceform dynamic tags
With Serviceform you have the ability to add context to your chatbot from the website that you are on. For example you can add hidden fields to your submission that will be sent to your backend integration, you can pick up images to show in the bot, you can also show text based on the context.
Example of this would be a car listing page, where in the chatbot you can use the car name to improve conversion, or a real estate listing page where you show agents name and send the email dynamically to the right agent.
Available dynamic tags:
1. Generic dynamic tags
Used for any type of text or HTML from the site to display in the chatbot. Goes up to 12.
In builder: Hi my name is #dynamicTag1. This price is #dynamicTag2.
2. Email receiver dynamic tag
Used to send the lead to a certain email.
This will send copy of the lead to firstname.lastname@example.org as an email. You can also add a comma separated list.
3. Agent image
Change agent image dynamically.
This will change the agent image on the chatbot.
This will trigger a webhook from the backend to the selected URL. The webhook will contain the whole dataset of the submission.
This will replace all calendly URLs of the chatbot with a dynamic calendly url taken from the page.
How to get the data from the website
Getting an email tag
// Helper function to get email from a generic piece of text. Make sure to change regexp url format.
Getting an image
Generic use cases are getting image from SRC, background or before lazy load works. This example is for a lazy load.