Skip to Content

Geopix AI, is an upcoming plugin for CraftCMS, and a homage to the creative, that aims to simplify the access to a world of images, based on the geolocation of the business address (website owner), and find relevance between images and businesses.

How?

  • Image database:
    • We will use Flickr's image database, as it is the only system that meets our requirements:
      • Free model: Yes (with limitations)
      • API: Yes
      • Location and geolocation: Yes, it can include geotagging
      • Image description/title: Yes
      • API rate limit: Yes, up to 3600 requests per hour
  • Text generation:
    • We will use the Perplexity API (not a GPT model), as it is more fact-oriented, accurate, and reliable than, in example ChatGPT. Perplexity AI API is used to generate inspiring text suggestions based on image metadata and the business profile, which includes information such as business idea, products, target audience, and geolocation.

Publishing Mechanism

  • Search function:
    • Images, events, and locations (metadata) should be searchable in a user interface under the "Geopix AI" option in Craft.
  • Add to assets:
    • If an image is found, one should be able to press an "Add to assets" button to use the image immediately. Metadata for images follows the image over to assets.
  • Suggest relevance:
    • If the relevance between an image in the Flickr database (user interface of Geopix AI) is not quite clear, one should be able to press a button called "Suggest Relevance". This connects Perplexity to the metadata in the image and the description of the business.

Perplexity prompt:

With the purpose of enriching the website and writing relevant content, make a suggestion on how VATS GARDSMAT, which specializes in PRODUCTION OF LAMB MEAT, at the location ÅL MUNICIPALITY, NORWAY with their target audience being PEOPLE WHO ARE INTERESTED IN LOCAL FOOD can use a photo from GOL MUNICIPALITY, NORWAY where the photo title reads THE SHEEP FESTIVAL IN GOL, and the photo description is as following: MANY EXCELLENT EXHIBITORS AT THE SHEEP FESTIVAL 2016. BOTH EXHIBITORS AND AUDIENCE HAD A GREAT TIME.

Perplexity prompt with shortcodes:

With the purpose of enriching the website and writing relevant content, make a suggestion on how [company-name], which specializes in [company-product], at the location [company-location] with their target audience being [company-audience] can use a photo from [image-location], where the photo title reads [image-title], and the photo description is as following: [image-description].

Error handling:

If an image does not contain [information missing], a message will be displayed that the description may be inaccurate due to [reason].

Payment model: Pay-per-use

  • Users pay a lower base price for the plugin, and then they pay for actual use of the APIs (Flickr and Perplexity AI) based on the number of requests.
  • We recommend starting with a pay-per-use model to keep initial costs low for users while covering the costs of API requests. This can later be adjusted based on user patterns and feedback.
  • One way to achieve this is to have a model where two requests per months is free of charge (included in the plugin price).
  • Stripe (or other services like it) can be used for payments.
  • Vendor for plugin: Unknown at this moment.

Extra Details:

Technical Implementation:

  • API integration:
    • Implement GuzzleHTTP or another HTTP client to communicate with Flickr and Perplexity APIs.
    • Handle authentication and authorization for both APIs.
  • Caching:
    • Implement a caching mechanism to store results from API calls and reduce the number of requests.
    • Consider using CraftCMS's built-in caching functionality or an external caching solution like Redis.
  • User interface:
    • Develop an intuitive user interface in CraftCMS for searching for and displaying images.
    • Implement functionality to add images to assets and suggest relevance.
  • Error handling:
    • Handle API errors and provide user-friendly error messages.
    • Ensure that the user is notified if necessary information is missing from an image.

Documentation:

  • Installation:
    • Detailed instructions on how to install and configure the plugin in CraftCMS.
  • User manual:
    • A simple user manual for non-technical people.
  • API documentation:
    • Detailed documentation for integration with Flickr and Perplexity AI API.

There is a web page for the project as well. Currently in development, on our staging. Have a go at it.