AI Interpolator ConvertAPI

Last updated on
23 February 2024

This page has not yet been reviewed by AI Interpolator maintainer(s) and added to the menu.

The ConvertAPI is a context filler plugin, that makes it possible to extract the content from a PDF, Word or Excel file into a long text field. This makes it possible to use these for any context for further AI chains.

Module link: https://www.drupal.org/project/ai_interpolator_convertapi

Installation

  • Use Composer to get the module: "composer require 'drupal/ai_interpolator_convertapi"
  • Install the AI Interpolator ConvertAPI like any other module.
  • Login to your ConvertAPI account and get an API token.
  • Visit /admin/config/convertapi/settings and paste the API token.

How to use

In this use case we will extract the content from a Word file.

  1. Create a new node called "Article"
  2. On the "Article" you generate a File field that you name "File".
  3. Make sure to only enable the extension docx
  4. On the "Article" you generate Text (formatted, long) field that you name "Contents"
  5. If you scroll down on the settings page you should now see a check box titled "Enable AI Interpolator". Check that one.
  6. In the "Choose AI Interpolato Rule" field select "Text from Document".
  7. In the "Interpolator Base Field" you choose "File" as the file field to scrape.
  8. Save the settings.
  9. Now try generating an Article and upload a Word file.
  10. After saving the Article should have a the content from the file in the text field.

Example ideas of workflows that could be done with the ConvertAPI plugin.

  • For using an a PDF, Word or Excel as a context for any of the other workflows described.
  • This means that you can generate a story or a podcast or an article header text or another image from the document you uploaded.

You can also find videos of OpenAI Workflows under workflows-of-ai.com

Workflows of AI

Available Rules

Rule Name Description Field Types
Text from Document This read file field with a PDF, Word or Excel file and fills out a long text field. Text (plain, long)
Text (formatted, long)

Help improve this page

Page status: No known problems

You can: