Elvir ThaqiAI & Automation Engineer

Loading0%

Project 02

Shopify B2B Account Automation

An automated B2B onboarding architecture connecting Pipedrive, Shopify and Keycloak to manage company registration, account approval, customer tagging and controlled purchasing access.

The problem

Wholesale buyers need an approved account before they can see wholesale prices and place orders. Approving a company by hand means creating and linking records in the CRM, the store and the login system, and one missed step leaves a buyer locked out or seeing the wrong prices.

What I built

An onboarding flow that connects a B2B form, Pipedrive, Shopify B2B and a central identity provider. A form submission, or a deal reaching a defined stage in Pipedrive, starts it.

The flow checks for existing records first, then creates or updates the Shopify customer and the company contact, applies the tags that control pricing and purchasing access, creates the login and sends the buyer an email to set a password.

Sign in

Buyers sign in through one central login that Shopify B2B trusts. The identity provider started on Keycloak and later moved to Logto. I moved the users with their existing password hashes, so nobody had to reset a password because of the move.

Guard rails

Each step stops with a clear message when a check fails, for example when the company on the form does not match the company in the store, or when a record already exists. A failed step never leaves half an account behind.

How it starts
A person submits a B2B form or a CRM deal reaches a defined stage.
Where results go
Other systems (Shopify, Pipedrive and Keycloak).
Stack
Pipedrive, Shopify, Keycloak

All projects