How To Make Links Clickable

Modified on Sun, 8 Sep at 11:46 AM

Overview


In Chatbot Builder AI, creating clickable links is essential for providing users with easy access to websites, contact information, and other resources. This documentation explains how to make various types of links clickable within your chatbot, such as website URLs, phone numbers, email addresses, and more.


Supported Clickable Link Types


    1.    Website URLs: Direct users to a website.

    2.    Phone Numbers: Allow users to call a number directly.

    3.    Email Addresses: Enable users to send an email.

    4.    SMS Links: Let users send a text message.

    5.    Google Maps Locations: Provide a clickable link to a specific location on Google Maps.

    6.    Social Media Links: Direct users to social media profiles or pages.


Creating Clickable Links


1. Clickable Website URLs


To create a clickable link for a website, use the following HTML structure:


<a href="https://www.example.com" target="_blank">Example Website</a>


    •    href: The URL of the website you want the user to visit.

    •    target="_blank": Opens the link in a new tab.

    •    Example Website: The text that users will click on.


Example:


<a href="https://www.pizzahut.com" target="_blank">Pizza Hut</a>


2. Clickable Phone Numbers


To create a clickable link that allows users to dial a phone number directly, use the following structure:


<a href="tel:+18001234567">Call Us</a>


    •    tel:: Indicates a telephone number.

    •    +18001234567: The phone number users will call.

    •    Call Us: The text that users will click on.


Example:


<a href="tel:+18006927753">1-800-MY-APPLE</a>


3. Clickable Email Addresses


To create a clickable link that opens the user’s default email client, use this format:


<a href="mailto:support@example.com">Email Us</a>


    •    mailto:: Opens the default email client.

    •    support@example.com: The email address that will be used.

    •    Email Us: The text that users will click on.


Example:


<a href="mailto:support@microsoft.com">support@microsoft.com</a>


4. Clickable SMS Links


To allow users to send a text message directly from a link, use this structure:


<a href="sms:+18001234567">Send a Text</a>


    •    sms:: Indicates an SMS action.

    •    +18001234567: The phone number that the text message will be sent to.

    •    Send a Text: The text that users will click on.


Example:


<a href="sms:+18001234567">Send a Text</a>


5. Clickable Google Maps Locations


To link to a specific location on Google Maps, use this structure:


<a href="https://maps.google.com/?q=Location+Name">View on Google Maps</a>


    •    https://maps.google.com/?q=: Base URL for Google Maps.

    •    Location+Name: The location you want to display on the map.

    •    View on Google Maps: The text that users will click on.


Example:


<a href="https://maps.google.com/?q=Pizza+Hut">Pizza Hut Location</a>


6. Clickable Social Media Links


To create a clickable link to a social media profile or page, use this format:


<a href="https://www.socialmedia.com/profile" target="_blank">Social Media</a>


    •    https://www.socialmedia.com/profile: The URL of the social media profile.

    •    target="_blank": Opens the link in a new tab.

    •    Social Media: The text that users will click on.


Example:


<a href="https://twitter.com/pizzahut" target="_blank">Pizza Hut Twitter</a>


Using the Prompt Template Section in Chatbot Builder AI



Chatbot Builder AI provides a Prompt Template section that simplifies adding instructions and formatted examples for training your bot. This feature allows you to create user and assistant message examples in the proper format, ensuring your bot learns how to send clickable links correctly.


In the Prompt Template section, you can easily:


1. Add Instructions: Clearly outline how the bot should format clickable links, including websites, phone numbers, and emails.

2. User and Bot Style Examples:

   - Provide a user-style message requesting a link (e.g., "Can you send me the link to McDonald’s?").

   - Supply the assistant’s formatted response using HTML tags (e.g., `<a href="https://www.mcdonalds.com" target="_blank">McDonald's</a>`).

3. Test Link Formatting: By adding these prompts and responses, you can test how the bot will respond in real interactions, ensuring that clickable links are presented correctly.


For example, you can input:


- User Message: "Can you send me the link to McDonald’s?"

- Assistant Response: Sure! You can click here: `<a href="https://www.mcdonalds.com" target="_blank">McDonald's</a>`


This setup in the Prompt Template makes training your bot to send links intuitive and ensures consistent behavior when deploying your chatbot.


Best Practices


    1.    Use Clear Link Text: The text users will click on should be descriptive and relevant. Avoid generic terms like “Click Here.”

    2.    Open External Links in a New Tab: Always use target="_blank" to open external links (like websites and social media) in a new tab. This ensures that users can easily return to the chatbot conversation.

    3.    Use SMS Links Thoughtfully: SMS links should be used sparingly, ensuring the phone number is formatted correctly and users are aware that clicking the link will open their messaging app.

    4.    Testing Links: Always test your clickable links before deploying the chatbot. This ensures that the URLs, phone numbers, and email addresses are correct and function as expected.

Example Conversations to Include in your Prompt:


User: Can you send me the link to McDonald’s?


Assistant: Sure! You can click here: <a href="https://www.mcdonalds.com" target="_blank">McDonald's</a>.


User: Can you send me the phone number for Apple customer service?


Assistant: Sure! You can call them here: <a href="tel:+18006927753">1-800-MY-APPLE</a>.


User: Can you send me the link to the Microsoft support email?


Assistant: Sure! You can email them here: <a href="mailto:support@microsoft.com">support@microsoft.com</a>.


User: Can you send me the link to the Pizza Hut location on Google Maps?


Assistant: Sure! You can click here: <a href="https://maps.google.com/?q=Pizza+Hut">Pizza Hut Location</a>.


By following this documentation, Chatbot Builder AI users will be able to successfully integrate clickable links into their chatbot conversations, enhancing user engagement and providing a seamless experience.

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