Documentation last updated: December 18, 2023

Plugin last updated: December 18, 2023

Bubble plugins

Replace this with a link to your plugin

Table of Contents


Overview

This plugin is a simple utility that takes a text input in JSON format, breaks it apart into separate JSON objects, and returns an array of those objects.

It was built to assist specifically with text values returned from an API like ChatGPT but can be adopted for use with any text that is given in a standard JSON format.


How to use

There is only one action in this Plugin called “Extract JSON Objects”. You can access it from any workflow action under the “Data (Things)” category.

Follow these steps to use the Plugin action:

  1. Build a page that connects to ChatGPT via API and receives a response that's formatted in JSON (or any other similar API).
  2. Add the Plugin Action "Extract JSON Objects" and use the response from Step 1 as the dynamic input value for the field "JSON Array"
  3. Add another workflow step of your choice to capture the output from this plugin action (it could be in a state variable or passed to another workflow). The format of the output is Text (List of), so be sure to set the type accordingly.

You can now work with individual text objects coming from ChatGPT and take action on them.