#70 — Initiate create integration flow
Repo: Twill-AI/twill-ai-ui State: closed | Status: done Assignee: Unassigned
Created: 2024-10-17 · Updated: 2025-03-11
Description
Caused by https://twill-network.slack.com/archives/C06UCQP1BFC/p1729189692296989. Blocked by https://github.com/Twill-AI/facade/issues/148
In order to successfully create Rutter connections and, in general any integration, we need to modify the front-end so that users are redirected from the 3rd party connection webpage to our system.
When the flow to create a new Rutter connection completes successfully, Rutter redirects the user to our system. The idea is to build a new front-end URL that looks like https://fluffy-winner-lm32gle.pages.github.io/rutter_public_tokens?... (let’s call it “rutter_public_token_url”). The front-end should be able to load from that URL (i.e. have a route) following query params:
- source_type: Any of the supported sources in Rutter.
- mediator_type:
rutter(hardcoded). - public_token: Token that will be provided by Rutter.
Upon loading, the front-end should invoke Facade’s add integration API (https://twillpayments.atlassian.net/wiki/spaces/TD/pages/7929859/Facade+API) and call POST /integrations with
{
source_type: source_type,
mediator_type: "rutter",
name: `${source_type}_${public_token}`,
public_token: public_token
}
Next user may be redirected to “Business Questionnaire” (see “Beta Onboarding Flow V2” in https://www.figma.com/board/idWyLGHpiVaQTW2kuk8bnd/Twill-Beta-Onboarding-Flow?node-id=1-541&node-type=shape_with_text&t=x6w32tF7GFbXGLey-0)
On the “integrations” page (which precedes all pages above) need to show tiles
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets