AI Tools for Drupal Developers

The Opensolr chat model and twelve tools for your own AI agents

AI Tools for Developers

Opensolr AI Search also gives the Drupal AI module building blocks that any AI agent or chat bot of your site can use, not only the Opensolr assistant.

The Opensolr provider

An AI provider named Opensolr, with two kinds of work, both done on the Opensolr API servers:

  • Chat: answers chats, streamed or not, follows a system message, returns JSON or a structured answer, and calls tools.
  • Embeddings: turns text into the same meaning vectors your Opensolr Index uses.

The same module registers your Opensolr Index as a vector database for Drupal AI Search: see Drupal AI Search.

Twelve Opensolr tools

In the opensolr group of AI function calls:

ToolWhat it does
Search this sitePassages from your Opensolr Index with their links; PDF results down to the page.
Local timeThe date and time at a place, coordinates or an IP address.
Exchange ratesRates between currencies, today or on a past day.
VAT ratesStandard and reduced rates of European countries and the United Kingdom.
VAT number checkWhether an EU or UK VAT number is valid, and who it belongs to.
Distance between placesStraight-line distance in kilometres and miles.
Postal codesCodes and the addresses that have them.
Find a place or coordinatesA place or address with its coordinates, or what is at given coordinates.
Where an IP address isCountry, region, city and time zone.
Language and sentimentThe language of a text and whether it reads positive, negative or neutral.
Describe a pictureWhat a picture of your site shows.
Read a documentThe text of a document of your site.

The Assistant tab lists them under Opensolr tools. The same lookups are open to any application through the Opensolr API: see Facts for chat bots and apps.

Their work counts on your Opensolr plan the same way as the assistant's: see What the assistant costs and API Quota.

Site Assistant