Skip to content

add a request webhook type to the new inbox page #53

Closed

Description

@mcwhittemore

when it happen emit a loopway event to an inbox we will need to create that create a ticket asking for this new webhook. Depends on #48. Feel free to create the inbox yourself.

Activity

  1. mcwhittemore commented on Oct 8, 2026

    @mcwhittemore
    CollaboratorAuthor

    Here's how I read this: the New inbox form gets a way to ask for a source type loopway doesn't have yet. Submitting it drops a message into a loopway-owned inbox, and something reading that inbox opens an issue here asking for the new webhook. Each question has a proposed default, so a 👍 or a correction is enough.

    1. What gets built now vs after from webhook inbox to bot home #48. Bots don't exist yet, and add a loopway web hook type #52 (the loopway source type) isn't built either. Proposed: build the web side now. That's the form and an endpoint that inserts a dev.loopway.source.requested message straight into the request inbox on the server, which needs no add a loopway web hook type #52 because it's the server writing to its own DB. Then the "open a ticket" step is handled by loopway threads on that inbox for now and becomes a bot once from webhook inbox to bot home #48 lands. Or would you rather this waited for from webhook inbox to bot home #48 and add a loopway web hook type #52?
    2. Who opens the ticket today. loopway threads routes by owner/repo#N, so a non-GitHub message would start a new session with the GitHub-issue prompt (thread.md). That would probably work, since the session would see "someone asked for webhook X" and open an issue, but the prompt isn't written for it. Proposed: leave the runner alone in this PR and let the ticket step come with the first bot in from webhook inbox to bot home #48. Or should I add a small prompt/flag so loopway threads can open these issues now?
    3. Which inbox. Proposed: one inbox, owned by your account, named source-requests. The server finds it through a SOURCE_REQUEST_INBOX_ID env var, so it's a deploy step, not a hardcoded id. Its source_type would be loopway once add a loopway web hook type #52 exists. Until then, what should it be? I'd rather not create it as github and have it show a GitHub webhook URL.
    4. The form. Proposed: a last option in the Source dropdown, "Something else…", that swaps the form for a single "Which webhook do you want?" textarea (name, link to its docs) and a "Request it" button. The message carries that text plus the requester's user id and email.
    5. Ticket contents. Proposed: title Support <what they typed, trimmed>, with a body holding the request text and who asked (by user id, not email, since the repo is shared). Should the email go in the issue, or stay only in the inbox message?
  2. mcwhittemore commented on Oct 9, 2026

    @mcwhittemore
    CollaboratorAuthor

    this should use the apis that have been created since this started. Refresh your view of main. The frontend feature should be aware of where it is deployed as this should only show up on craftmill hosted sites as it will be a craftmill loopway inbox the events are targeting.

  3. loopway-bot commented on Oct 9, 2026

    @loopway-bot
    Contributor

    Opened #66. It uses the loopway source from #54: the server posts the request to a craftmill source-requests inbox (I created it). The option only appears where SOURCE_REQUEST_URL and SOURCE_REQUEST_TOKEN are set, which is a deploy step on craftmill's Vercel. Opening the GitHub issue is left to a bot reading that inbox; details are in the PR.

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