i icon indicating copy to clipboard operation
i copied to clipboard

JavaScript Helper Shortcut

Open extratone opened this issue 3 years ago • 0 comments

Updated 08062022-190414


Social

here's a quick shortcut using the upcoming @ToolboxProApp's integration with @OpenAI to form a chatbot-esque single-query, single-response flow stored in @cheatsheet_app, @Simplenote, or both! https://routinehub.co/shortcut/12761

Using the (currently in beta) OpenAI integration in Toolbox Pro to answer simple JS questions.

JavaScript Helper Shortcut

Requirements

This shortcut uses Toolbox Pro Beta's upcoming OpenAI integration to constitute a single-query, single-response "chatbot" integrating with the OpenAI API directly emulating the "JavaScript helper chatbot" example in the OpenAI documentation.

At install, you will be prompted to specify the default response length of replies. As the OpenAI example playground is configured, this length is "60 tokens," but I have personally found great success with ~200. You will also be asked to specify a Cheatsheet folder in which to store responses.

By default, the shortcut will store the responses in both Cheatsheet for iOS and Simplenote for iOS. You may choose either/or by retaining or deleting the appropriate actions.

OpenAI Integration Token Input in Toolbox Pro Beta

If you intend to use this shortcut repeatedly, you'll want to signup for a free OpenAI developer account to take advantage of its much higher usage cap.

extratone avatar Aug 06 '22 23:08 extratone