FlowRunner
Features Pricing
Theme
Start Free

Duplicate customers in weclapp, merged by their owner

When a new weclapp customer matches an existing one, this flow compares both records and their order history and asks your RevOps owner which one to keep.

The prompt

When a new customer is created in weclapp, check whether we already have that customer under the same email or company name. If we do, compare the two records, count the quotations, orders and invoices on each, and ask our RevOps owner in Slack which one to keep, with a button for each record and a Not the same customer button. Wait for the answer. Copy any email, phone or website the kept record is missing from the other one, then delete the other one. If weclapp won't delete it because it's still in use, say so in the Slack thread and recommend deactivating it.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

Yes Yes No Code Write the question forthe RevOps owner Condition Possible duplicate? Action Load the existingcustomer If a step fails weclapp refused thedelete Action Delete theduplicate Action Confirm they stayseparate Condition Merge them? Action Load the newcustomer Asks a person Ask the RevOpsowner Asks a person Wait for the RevOpsowner's answer Action Look for the sameemail AI agent Compare the tworecords Action Look for the samecompany name Code Pick the likelyduplicate Code Work out the merge Action Confirm themerge Action Recommenddeactivating it Action Merge into therecord that stays Starts the flow New customer inweclapp

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works

What each step does

  1. New customer in weclapp Starts the moment a new party is created in weclapp and loads the full record, with its addresses, bank accounts, contacts and customer number.
  2. Pick the likely duplicate Looks for existing customers with the same email or a company name that contains the new one, and picks the likely duplicate. A new party that is not a customer is left alone, and with no match the run ends here.
  3. Compare the two records Loads the matching record, then an AI agent counts the quotations, sales orders and invoices on each record and lists where customer number, addresses, bank accounts, contacts, email and phone match or differ.
  4. Ask the RevOps owner Posts both records to Slack with their counts, the differences and a suggestion, and three buttons: keep the existing record, keep the new one, or Not the same customer.
  5. Wait for the RevOps owner's answer The run waits for the click. Not the same customer changes nothing and says so in the Slack thread.
  6. Merge into the record that stays Copies any email, phone or website the kept record is missing from the other one. Everything else on it stays as it was.
  7. Delete the duplicate Deletes the other record and replies in the Slack thread with which record stayed and which was deleted. weclapp will not delete a record that quotations, orders or invoices still use, so in that case the thread says to deactivate it in weclapp instead.

Before you turn it on

  • Connect your Slack account, and enter your weclapp tenant and API token.
  • Add your Anthropic key in the flow setting Anthropic key.
  • Copy the URL of the block Wait for the RevOps owner's answer into the flow setting Answer link. The Slack buttons open it.
  • Pick your Slack channel in the four Slack steps.