@prestatech/agentic-widget
v1.1.1
Published
Embeddable fintech onboarding widget — framework-agnostic <presta-agent-widget> web component for document upload & file parsing, credit checks, cross-checks, and open banking.
Maintainers
Keywords
Readme
@prestatech/agentic-widget
Embeddable onboarding widget — add applicant document collection, bank connection, and identity / credit checks to your app with one tag.
Works in plain HTML, React, Vue, Angular, and Svelte. Self-contained styling, no build step.
📖 Full guide: Prestatech Widget docs · SDK integration
Install
npm install @prestatech/agentic-widgetOr from a CDN — no install:
<script src="https://unpkg.com/@prestatech/agentic-widget"></script>Quick start
Create an agent in your Prestatech portal to get an Agent ID, and get your API base URL from the docs, then:
<presta-agent-widget
agent-id="YOUR_AGENT_ID"
base-url="API_BASE_URL">
</presta-agent-widget>import '@prestatech/agentic-widget' // registers the <presta-agent-widget> tagWith just agent-id + base-url, the applicant verifies themselves with a one-time passcode. To
skip it, start a session on
your backend and pass the returned token.
Attributes
| Attribute | Required | Description |
| ---------- | -------- | -------------------------------------------------------------------- |
| agent-id | yes | The Agent ID to run. |
| base-url | yes | Your Prestatech API base URL — see the docs. |
| token | no | Session token; when present the applicant skips the passcode. |
| locale | no | UI language (en | it | de). Defaults to the browser locale. |
| branding | no | JSON string overriding your account branding. |
| intro | no | JSON string overriding the intro dialog: { "enabled", "title", "body", "showRequirements" }. title/body accept a string or a per-locale map. The requirements list always reflects the agent's configuration. |
Events
const el = document.querySelector('presta-agent-widget')
el.addEventListener('done', (e) => console.log(e.detail)) // { agentId, processId }
el.addEventListener('error', (e) => console.log(e.detail)) // { code }TypeScript and JSX types ship with the package.
License
MIT — © Prestatech.
