JavaScript Helper Shortcut
Updated 08062022-190414
- GitHub Issue
- RoutineHub Page
- iCloud Share Link
- Source Repo File
- WTF
- Things
- Scary Summaries Shortcut
- OpenAI Documentation
- OpenAI Playground
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, @simplenoteapp, or both! https://t.co/Ip40IUaRUc pic.twitter.com/JJ9LjeDkcg
— ⓓⓐⓥⓘⓓ ⓑⓛⓤⓔ (@NeoYokel) August 7, 2022
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.

Requirements
- Toolbox Pro Beta (Actually Required)
- An OpenAI API Token (Required after just a few runs)
- Cheatsheet for iOS (Optional)
- Simplenote for iOS (Optional)
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.

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.