Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: MCP Sentinel 2.28.2 — Minor update available for module mcp_sentinel (2.28.2). Release: Rightup theme 1.0.2 — Minor update available for theme vartheme_bs5_rightup (1.0.2). Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage. Module Revived: Liquid Voting 2.0.1 — Module liquid_voting updated after 6 months of inactivity (2.0.1).

ConvertAPI

No security coverage
View on drupal.org

ConvertAPI is a service that can take an Excel/PDF/Word file and convert it into pure text. It is recommended to use Unstructured instead since it provides better results and can be self hosted, but if you are really only looking for a really cheap way of turning those files into text without much effort ConvertAPI is easier and cheaper to use if you use the service.

ConvertAPI is a module that currently have two things available for it. The one thing is a service where you can get text from a file from the ConvertAPI service for any third party module that would want to use it for contextualize AI calls or show the file data to the end user.

The other core feature is that it has one AI Automator type for the AI Automator module that can be found in the AI module. It makes it possible to take any file field and fill out any text field. This can work in an Automator workflow/blueprint to make powerful end products.

Features

  • Create text representation from PDF files.
  • Create text representation from Excel files.
  • Create text representation from Word files.
  • All without having to install a single applications on your server.

Requirements

  • Requires an account at SearchApi. There is a free trial.
  • To use it, you need to use a third party module using the service. Currently its only usable with the AI Automator submodule of the AI module

How to setup with AI Automator

  1. Install the AI module.
  2. Install this module.
  3. Visit /admin/config/convertapi/settings and add your api key from your ConvertAPI account.
  4. Create some entity or node type with a file field. Make it possible to only upload PDF, Excel or Word files.
  5. Create a Text Long, either formatted or unformatted.
  6. Enable AI Automator checkbox and configure it.
  7. Create an entity of the type you generated, upload a file.
  8. The text will be filled out.

Use the service

This is a code example on how you can get text for a file entity.

// Load some file entity.
$file = File::load(1);
$convertapi = \Drupal::service('convertapi.api');
// Get answers in as text.
$text = $convertapi->convertFromFile($file);

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.x-dev Dev Jul 8, 2024