#686 — Implement create merchant from text + files

Repo: Twill-AI/twill-ai-ui State: closed | Status: done Assignee: nadddder, raymondehizoba

Created: 2025-09-07 · Updated: 2025-11-05

Description

Caused by: https://twillpayments.atlassian.net/wiki/spaces/TD/pages/431915009/AI+powered+document+processing

Draft screenshot: Image

This is a new feature that allows the user to create a merchant and a pre-filled application directly from a list of uploaded files + some copy pasted text. The flow should go as folows:

  1. User clicks on “Add merchant” and a blank merchant is created. (i.e. call POST /api/v1/partner/merchants)
  2. They see something similar to the screenshot above and start uploading (drag and drop files). Files should be uploaded on the fly (i.e. not wait util “Generate” is pressed) This uses: POST /api/v1/partner/merchants/{merchant_id}/documents
  3. The user presses “Generate” and a new API is called, the API is defined on https://github.com/Twill-AI/facade/issues/565
  4. Once the generation is done the information is saved as draft on the merchant and the backend returns a 200.
  5. The UI should display the application with the pre-populated fields (normal GET from merchants API).

AC:

  • There is a new page that covers the Add Merchant functionality as described above
  • The new application is shown to the user after GENERATE is done

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets