Fun AI Website Integration: AI Fortune Teller

Fun AI Website Integration: AI Fortune Teller

Glen Brunke, January 12, 2024

Technological advancements continue to reshape the digital landscape, integrating Artificial Intelligence (AI) into your website is no longer just a futuristic concept—it's a strategic move that can elevate your online presence. As a demonstration, I created a simple AI integration that will tell your fortune based on the combination of three randomly selected cards. This integration connects with the Open AI API version GPT-4.

How It Works

A user visits the AI Fortune Teller website and asks for their fortune by pressing a button. Three cards are presented to the user face down, they are revealed when the user clicks on each card. Once the third card is revealed, the application makes an API call to the AI service to get their customized fortune.

In theory, the fortunes are fairly unique. There are 30 possible cards (all created by Open AI's DALL-E3), yielding thousands of possible combinations.

Is AI Integration Expensive?

Despite reports that Microsoft is losing money on some AI services like GitHub Copilot, AI isn't that expensive for many use cases. Each API call is charged based on the number of tokens (how many characters/words you use) and a small request like telling a fortune costs less than $0.01 USD per call. Of course, in aggregate, millions of API calls per month could add up, but that isn't the case for most websites.

There are also ways to limit usage, for example my AI Fortune Teller only allows for a single fortune per IP address per day and if I wanted to turn off the live integration at any time, I've already asked Chat GPT for dozens of "generic" fortunes to keep to the side to ensure the program keeps running.

The Future Includes More AI

AI technologies, such as chatbots and virtual assistants, have the power to revolutionize the way users interact with your website. They will become more widely used and more effective as time goes on. These tools can provide instant and personalized assistance to visitors, addressing their questions and guiding them through various processes. This not only enhances user satisfaction but also ensures that your audience receives prompt and relevant information, fostering a positive experience that encourages return visits.

ChatGPT according to ChatGPT

If you're not yet convinced, let ChatGPT tell you why you should use it on your website:

You should consider using ChatGPT on your website for a range of compelling reasons. Firstly, ChatGPT enables real-time interaction and support, providing instant responses to user queries and enhancing overall engagement. Its 24/7 availability ensures continuous assistance, catering to global audiences across different time zones. The scalability of ChatGPT allows for efficient handling of growing website traffic, offering consistent support without the need for an immediate increase in human resources. This not only contributes to improved customer satisfaction but also proves cost-effective as ChatGPT operates without breaks or ongoing salaries. With its natural language understanding capabilities, ChatGPT facilitates conversational and user-friendly interactions, while customization options allow alignment with your brand's identity. The versatility of ChatGPT extends beyond customer support, offering assistance in various use cases and ultimately transforming the way users engage with your website.