Spin up a Box customer workspace when a HubSpot deal closes won

By General Input

The moment a deal flips to Closed Won in HubSpot, build the customer's Box folder set, log the link on the deal, and ping the owner in Slack.

Integrations

  • HubSpot
  • Box
  • Slack

Type

Agentic Task

Categories

  • Sales
  • Operations

Build me an agent workflow that fires whenever a HubSpot deal moves into the Closed Won stage. Use a HubSpot webhook on the deal stage-change as the trigger so it runs the moment a deal closes.

When the workflow fires, here is exactly what I want the agent to do:

1) Pull deal context from HubSpot. Use Get Deal to retrieve the deal name, amount, owner ID, and the associated company. Then use Get Company on that association to grab the company name, and Get Owner on the deal owner so we have the owner's name and email.

2) Find or create the customer folder in Box. I have a top-level Customers parent folder in Box (its folder ID should be a configurable input). Use Box List Folder Items on that Customers folder to check whether a subfolder already exists with the same name as the company. If one exists, reuse it. If not, call Box Create Folder under the Customers parent, named exactly after the company.

3) Inside that customer folder, ensure a consistent set of subfolders exists: Contracts, Onboarding, Invoices, Shared with Customer, Internal. Use the same find-or-create pattern so re-running the workflow on the same deal never produces duplicates. Only create what is missing.

4) Call Box Add Shared Link to Folder on the top-level customer folder with company-only access, and capture the resulting shared URL. (Make the access level easy to swap later, e.g. company-only vs anyone-with-link.)

5) Back in HubSpot, use Create Note associated with the deal. The note body should include the Box workspace shared URL plus a short breakdown of the subfolders inside it (which ones were just created and which already existed), so anyone opening the deal can jump straight into the right place.

6) If the deal owner has an email, send the owner a Slack message via Send a Message. The message should include the deal name, the deal amount, and the Box workspace link, with a one-line nudge to drop kickoff materials into Shared with Customer. Keep the tone like a friendly handoff, not a robotic alert. If there is no owner or no owner email, skip the Slack step quietly and let the rest of the workflow succeed.

Important nuances to bake in:

• Never create a duplicate customer folder. Always check for an existing folder with that exact company name in the Customers parent first and reuse it. Treat the subfolder set the same way.

• Skip the Slack ping if the owner has no email; the Box folder and the HubSpot note must still complete.

• Make the following easy to edit later: the Customers parent folder ID in Box, the list of standard subfolders, the Slack shared link access level, and whether the Slack heads-up also goes to a sales handoff channel in addition to the owner.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentWin back LiveChat visitors whose chats went unansweredTurn Mailjet email clicks into ranked HubSpot follow-upsiMessage campaign console with pre-flight checks and delivery boardChat quality review board for LiveChat support leadsA searchable RFP answer library your bid team drafts fromSee which target accounts just started advertising on LinkedInAccount health board that puts product usage next to your CRMLook up a customer's full chat history mid conversationLusha prospecting workbench with credit-safe reveals