Scale customer reach and grow sales with AskHandle chatbot

How to Insert Unsplash Images into AskHandle AI Responses?

Incorporating images into your AskHandle AI responses can significantly enhance the user experience by providing visual context. By following a few simple steps, you can automate the inclusion of Unsplash images in responses based on certain keywords. This guide will walk you through the process, including how to set up the necessary files and how the AI can use them effectively.

image-1
Written by
Published onAugust 16, 2024
RSS Feed for BlogRSS Blog

How to Insert Unsplash Images into AskHandle AI Responses?

Incorporating images into your AskHandle AI responses can significantly enhance the user experience by providing visual context. By following a few simple steps, you can automate the inclusion of Unsplash images in responses based on certain keywords. This guide will walk you through the process, including how to set up the necessary files and how the AI can use them effectively.

Step 1: Prepare the Unsplash Image URLs

The first step is to create a CSV file that contains the Unsplash image URLs associated with specific keywords. For example, if you're focusing on New York tourist attractions, you could list images related to Manhattan, Times Square, Central Park, and more. Your CSV file should have two columns:

  1. Keyword: The specific term or phrase that will trigger the insertion of an image.
  2. Image URL: The direct URL of the Unsplash image that will be inserted.

Here’s a more detailed example of what this might look like in the CSV file:

KeywordImage URL
Manhattanhttps://images.unsplash.com/photo-1485738422979-f5c462d49f74
Times Squarehttps://images.unsplash.com/photo-1533577116850-9cc66cad8a9b
Central Parkhttps://images.unsplash.com/photo-1528747045269-390fe33c19e1
Brooklyn Bridgehttps://images.unsplash.com/photo-1559582792-cb2137b2ad63
Statue of Libertyhttps://images.unsplash.com/photo-1559170054-0762eaff38c2
Empire Statehttps://images.unsplash.com/photo-1506086679521-4e1d206115b5
Rockefeller Centerhttps://images.unsplash.com/photo-1513151233558-d860c5398176
Fifth Avenuehttps://images.unsplash.com/photo-1504429495908-d9c151f1d0a8
Wall Streethttps://images.unsplash.com/photo-1569934326550-4877221b3fb9
Broadwayhttps://images.unsplash.com/photo-1519501025264-1c1b2e25a045

Step 2: Upload the CSV File

Once your CSV file is ready, upload it to the system. This file will be used by the AI to match keywords in user queries with the appropriate images.

Step 3: Create a Guide for the AI

Next, you need to create a text file that provides guidance to the AI on how to handle the keywords and images. This guide should specify that when the AI encounters certain keywords in a user's message, it should insert the corresponding image before the text response. Here’s an example guide:

If you receive a message about New York tourist attractions like Manhattan, Times Square, Central Park, Brooklyn Bridge, Statue of Liberty, Empire State Building, Rockefeller Center, Fifth Avenue, Wall Street, or Broadway, you should include an image before the text response. If you find them in the New York tourist attraction Images CSV file, you should include the whole link in the answer as an image, and you should use Markdown to display the images. 

For example, the link https://images.unsplash.com/photo-1485738422979-f5c462d49f74 should be written as:
![New York](https://images.unsplash.com/photo-1485738422979-f5c462d49f74?w=230)

Always add `w=230` to fit our front-end design. Place the image first, followed by the text response.

This guide ensures that the AI understands when and how to insert images into its responses, following a consistent format.

Step 4: Integrate the Files into AskHandle AI

Once both files (the CSV and the guide text file) are prepared and uploaded, they need to be integrated into the AskHandle AI system. The AI will be programmed to:

  1. Search for Keywords: When responding to a query, the AI will scan the message for any keywords listed in the CSV file.
  2. Insert Images: If a keyword is found, the AI will retrieve the corresponding image URL from the CSV file and insert it into the response using Markdown syntax.
  3. Format the Response: The AI will ensure that the image is displayed at the top of the response, followed by the relevant text, using the specified w=230 parameter to fit the design.

Example of Final Responses

show image

Here are a few examples of how the AI might respond to different queries:

1. Query about Manhattan:

![Manhattan](https://images.unsplash.com/photo-1485738422979-f5c462d49f74?w=230)

Manhattan is one of the most iconic boroughs of New York City, known for its towering skyscrapers, bustling streets, and famous landmarks like Times Square and Central Park.

2. Query about the Brooklyn Bridge:

![Brooklyn Bridge](https://images.unsplash.com/photo-1559582792-cb2137b2ad63?w=230)

The Brooklyn Bridge connects Manhattan and Brooklyn, offering stunning views of the city skyline and the East River. It's a popular spot for both tourists and locals to walk, bike, and take in the sights.

3. Query about the Statue of Liberty:

![Statue of Liberty](https://images.unsplash.com/photo-1559170054-0762eaff38c2?w=230)

The Statue of Liberty, a gift from France, stands as a symbol of freedom and democracy. Located on Liberty Island, it is one of the most recognizable landmarks in the United States.

4. Query about Times Square:

![Times Square](https://images.unsplash.com/photo-1533577116850-9cc66cad8a9b?w=230)

Times Square is the vibrant heart of New York City, known for its bright lights, towering digital billboards, and bustling atmosphere. It's a major commercial and entertainment hub, drawing millions of visitors each year.

By following these steps and examples, you can seamlessly integrate visually appealing Unsplash images into your AskHandle AI responses, enhancing the user experience and providing rich, contextual information.

If you have any further questions or need assistance, feel free to send us an email at [email protected].

ImagesResponsesAskHandleAI
Create personalized AI to support your customers

Get Started with AskHandle today and launch your personalized AI for FREE

Featured posts

Join our newsletter

Receive the latest releases and tips, interesting stories, and best practices in your inbox.

Read about our privacy policy.

Be part of the future with AskHandle.

Join companies worldwide that are automating customer support with AskHandle. Embrace the future of customer support and sign up for free.

Latest posts

AskHandle Blog

Ideas, tips, guides, interviews, industry best practices, and news.

View all posts