AI Interpolator ConvertAPI
Last updated on
23 February 2024
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.
- Create a new node called "Article"
- On the "Article" you generate a File field that you name "File".
- Make sure to only enable the extension docx
- On the "Article" you generate Text (formatted, long) field that you name "Contents"
- If you scroll down on the settings page you should now see a check box titled "Enable AI Interpolator". Check that one.
- In the "Choose AI Interpolato Rule" field select "Text from Document".
- In the "Interpolator Base Field" you choose "File" as the file field to scrape.
- Save the settings.
- Now try generating an Article and upload a Word file.
- 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
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:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
