[2019 - no longer supported] PromptKit, an Advanced Dialog Engine for Shortcuts and iOS

NOTE: This is an old post regarding a shortcut I made back in 2019. It’s no longer supported, as subsequent versions of iOS made making complicated shortcuts more onerous and harder to edit and debug. This post remains for the historical record.

==========

Crossposted from this Reddit post.

PromptKit is an advanced dialog engine for Shortcuts and iOS. PromptKit creates powerful, interactive, multilingual, and multi-step prompts featuring speech, dictation, menus, dialogs, and automatic language translation.

For shortcut developers, the PromptKit API facilitates the creation of interactive prompts with branching logic, input validation, history, state, external shortcut support, and data storage, all without writing a single line of code.

Finally, PromptKit Stories combine multiple prompts together to create interactive guides, decision trees, adventure books for children, and improved Siri assistant-like functionality.

PromptKit

Links

PromptKit Benefits

PromptKit serves both end-users and developers alike.

Users of shortcuts whose prompts are powered by PromptKit gain the ability to:

Translation Settings

  • Input information using the keyboard or by voice.
  • Automatically translate messages and prompts to over 25 languages.
  • Experience and enjoy rich, data-driven flows with PromptKit Stories.
  • Work exclusively with voice or dialog-driven prompts. If offline, voice-driven prompts will switch to dialog-driven prompts.

PromptKit Prompt Formats

PromptKit allows developers to:

  • Create single and multi-step prompts that can validate user input without having to write any code.
  • Choose from an extensive list of prompt types, including:
    • Alert
    • Confirm
    • Date
    • Date and Time
    • HTML
    • List
    • Markdown
    • Notification
    • Number
    • Quick Look
    • Result
    • Speak
    • Text
    • Time
    • URL
  • Restrict prompts to accept a list of answers. Each answer can have multiple alternate responses.
  • Validate user input with operators such as:
    • contains
    • equals
    • exact equality
    • greater than
    • less than
    • between
    • before
    • after
    • between
  • Repeat the prompt once or multiple times if the input is not validated.
  • Change the message or input method for each prompt repetition.
  • Access every response the user provided or just the final response.
  • Detect and return user cancelled :stop_sign:, no response :question:, and successful responses by the user.

PromptKit Stories

PromptKit Prompts can be bundled together as scenes of a PromptKit Story. Stories extends the power of PromptKit by creating rich, interactive, multilingual, multi-step, and branching experiences. Stories can also call external shortcuts which can interact with other PromptKit scenes.

Stories make it easy to write:

  • Tutorial shortcuts.
  • Decision based stories for kids and adults.
  • Assistant-style shortcuts that have state, understand context, and feature multiple steps.
  • Universal translator from one language to another.

Developing a PromptKit Prompt is as easy as sending PromptKit a text string or a dictionary object. Learn more about its API to unlock its full potential, including the ability to:

  • Send and receive data from external shortcuts.
  • Store and share data between story scenes.
  • Access a history of past prompts (i.e. go back to step 4 or start over from the beginning).

I’m excited to see what you can create with PromptKit! Please enjoy!

2 Likes

Is this supposed to work with IOS 13 or only IOS 12. If I try to run it with one of the stories I get an error that says the app cannot be found. Is this being maintained?

It was designed back in the iOS 12 days, and I sadly have not had the time to update it for iOS 13, let alone iOS 14. I think for complicated app-like shortcuts, it’s probably best to write them as native apps instead of super-shortcuts.

I agree that this functionality is probably better done in an app with actions for Shortcuts. AFAIK, there is no app that can provide Promptkit like functional. Too bad.

Is it possible to get this deleted? It shows up at the top of most searches for dialogs and since it isn’t available anymore it is probably getting people’s hopes up.

Good point. How about I put a disclaimer at the top of the post?

It would still show up in searches though. With the search keywords highlighted in the search results.

I suspect that the system won’t let you delete the topic so maybe edit the post and remove all of the content from the original and then add an explanation?

That’s just playing whack-a-mole with search results nines. The title is amended and search engines will pick that up in time. The edit explains why it is no longer an option for anyone who used it previously that comes looking for the information.

Updating rather than deletion is definitely the way to go on public forums unless there is a reportable issue - spam, breaking forum rules, etc. at which point this can be reported and mods can remove and/or lock posts.

2 Likes