Job Runner

Generate Text From Text and Images Using OpenAI

Summary

Send the message and image to OpenAI, then retrieve a text from OpenAI.

How to Use

To use this Do, you need to issue an API key with your OpenAI account.

When you execute this Do, messages and images to the language model provided by OpenAI will be sent, then you can retrieve the text generated by that model.

The generated text will be set as the result value of the action. The result value of the action can be referenced using expressions like “= $1”.

Specify the images to be sent to OpenAI in the record and attachment file fields. All images in the specified record × attachment file field will be sent to OpenAI.

To send a message to OpenAI without attaching an image, use “Generate Text From Text Using OpenAI”.

Parameter

Set OpenAI API Key, Model, Message, Record Containing Image, and Image.

OpenAI API Key

Specify the API key that OpenAI has issued in advance.

Please note that this is not about the API token of the Kintone app.

Model

Specify the language model to which the message and image will be sent.

Message

Specify the message to be sent to OpenAI.

Record Containing Image

Specify the records obtained in advance.

If there are multiple records, images will be collected from all records to send to OpenAI.

If there are no records, no error will occur. In this case, it will be sent to OpenAI without an image.

Image

Select the attachment field from Record Containing Image.

If multiple images are attached in an attachment field, all images will be sent to OpenAI.

If no images are in the attachment field, no error will occur.

Precautions

Please judge the accuracy of the content generated by OpenAI and use it at your own risk.

Restrictions

The supported image formats depend on OpenAI’s specifications.