Skip to content

Dev interest in using the Prompt API #74

Open

Description

@ayuishii

Hi web developers!

We would like to gauge interest and learn about potential use cases for the Prompt API, as described in the explainer.

If you are interested in potentially using this new API, please reply to this thread with your use case and affiliation to a company, organization or app, if any.

Thanks!

Activity

  1. AdamSobieski commented on Mar 18, 2025

    @AdamSobieski

    @ayuishii , hello. Use-case scenarios of interest to me with respect to the Prompt API include AI and educational technologies.

  2. ChristopherJosephDeanSchaefer commented on Aug 29, 2025

    @ChristopherJosephDeanSchaefer

    @ayuishii my employer (Emprise Technologies) has an interest in this feature in relation to a browser based editor for an ETL tool. For the purposes of the use cases map refers to an object that contains everything needed to extract from the data source, transform the data, and load it into the target. This would include files as well as databases. The appeal of local AI in these scenarios is that the files involved may relate to protected information and configuration data may include connectivity to restricted systems. These systems may also need to function in environments with restrictions on Internet access which limits the availability of cloud based solutions.

    Use Case 1:
    The user has a sample input file but no layout documentation. The sample input could be fed into a model and tool calls out to JavaScript functions could be used to generate a new map. The user could then edit the map as normal to add anything not generated or correct any hallucinations.

    Use Case 2:
    The user has an existing map and wishes to perform an action on map such as mapping a source field to a target field. The user could interact with an AI assistant chat and request it to map the fields. The model could then use tool calls out to JavaScript methods to map the fields as requested.

    Use Case 3:
    The user wishes to perform an action on a map but doesn't know how. The user could interact with an AI assistant via a chat and ask how to perform an action. The model could make tool calls to JavaScript functions to obtain allowed operations and relay that information to the user.

    Use Case 4:
    When debugging a map an AI assistant may be able to query information about the map using tools to call JavaScript functions. This information could be used to generate suggestions for the user.

  3. tomayac commented on Aug 29, 2025

    @tomayac
    Contributor

    [M]y employer (Emprise Technologies) has an interest in this feature in relation to a browser based editor for an ETL tool.

    Maybe saving someone else a Web search: Extract, Transform, Load (ETL).

  4. yoichiro commented on Jun 24, 2026

    @yoichiro

    Hi @ayuishii, thanks for opening this thread! Sharing my use case as an independent web developer.

    I built Zero-Knowledge Pitch Builder, a fully client-side web app that turns messy brainstorming notes into a structured elevator pitch. It decomposes notes into the six standard pitch topics (Hook / Problem / Solution / Value Proposition / Competitors / Differentiators), generates pitches of different lengths, has three virtual personas (a VC, an executive, a consumer) critique the result, and does JA⇄EN translation with automatic language detection.

    Why the Prompt API specifically:

    1. Privacy by architecture. Users feed the app unreleased business ideas. Because inference is fully on-device, not a single byte leaves the browser — there is no server at all. This "zero-knowledge" guarantee is something cloud LLMs cannot offer by definition, and it's only possible because the browser ships the model.
    2. Zero operational cost. No inference cost, no API keys, no rate limits — just static files. This dramatically lowers the barrier for individual developers to ship LLM-powered apps.
    3. Trivial integration. LanguageModel.create() plus a few lines, no SDK, no npm install. Great DX.

    The core pattern is one LanguageModel session per topic, each with a systemPrompt defining its role (e.g. a pitch consultant), with Summarizer / Translator / LanguageDetector handling the rest. For multi-step, creative workflows like this, a generalized interface is uniquely valuable in ways narrow task-specific APIs can't cover.

    I've verified the app across Chrome and Edge, and my biggest hope is reliable cross-browser support. For creative/generative use cases, output variance across engines isn't a problem as long as quality clears a reasonable bar — so I'd love to see the community establish shared use-case benchmarks (e.g. within the Web ML Community Group) to ensure each browser's model meets that bar. Happy to share implementation details if useful. Thanks!

  5. michaelwasserman commented on Jun 27, 2026

    @michaelwasserman
    Collaborator

    @yoichiro thanks for the message, this is a highly compelling use of the Prompt API for information extraction, content analysis, persona-based direcional feedback, and goal-oriented rewriting.

    I just did a quick test of a wacky idea on Chrome and Edge, and got sensible answers on each browser. "I'm going to make wave energy harvesters in the ocean power ultrasonic humidifiers to generate cloud cover for costal areas affected by excessive heat."

    We are actively aiming to build an interop benchmarking repository for sharing use cases and performing cross-browser benchmarks for interop signals and model advancement. We will likely be seeking contributions from developers like yourself to inform core Prompt API use cases, sample prompts, sample results, and evaluations. Thank you for highlighting your work, and I hope that we might be able to incorporate some of the underlying ideas of your work into a benchmark.

    We would be glad for you to join a WebML CG meeting if you'd like to share your development experience and interop thoughts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions