FlowRunner
Features Pricing
Theme
Start Free

Emailed ASN turned into a ShipBob receiving order, with box labels sent back

When a client or supplier emails an ASN or packing list, creates the ShipBob receiving order and replies with its box labels. Problems go to the receiving lead first.

The prompt

When a client or supplier emails an ASN, packing list or inbound BOL to our receiving inbox in Gmail, read the attachment and pull out the PO number, carrier, expected arrival date, ship-to, and every box or pallet with its tracking or PRO number and SKU quantities. Match the ship-to to one of our ShipBob fulfillment centers and look up each SKU in ShipBob. If everything matches and the PO has no open receiving order yet, create the warehouse receiving order with the boxes and expected quantities, and reply to the sender in the same thread with the receiving order number and ShipBob's box labels as a PDF, so they can label every box before it ships. Otherwise show the receiving lead what is wrong in Slack, with Create without those SKUs and Set it aside buttons, and wait for the answer. Tell receiving in Slack if ShipBob refuses the order.

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

The flow

No Yes No Yes Repeats for each item Each SKU on the ASN Action Confirm it is setaside Action Save the ASN file Action Get openreceiving orders Action Start the SKU list Action Create the receivingorder in ShipBob Starts the flow New ASN email If a step fails ShipBob refused it AI agent Read the ASN Asks a person Wait for the receivinglead's answer Action Reply with thereceiving order andbox labels Action Tell receivingwhy Action Get ShipBobfulfillment centers Condition Ready to create? Asks a person Ask the receivinglead Code Build the receivingorder Condition Create it? Action Get the box labels Action Ask receiving tosend the labels If a step fails Labels not ready Action Reply without thelabels

Inside the loop: Each SKU on the ASN

Action Find the SKU inShipBob Code Note the inventory ID

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 ASN email Checks the receiving inbox in Gmail every 5 minutes for an email with an attachment and ASN, ship notice, packing list or inbound in the subject.
  2. Read the ASN Once the file is saved and the fulfillment center list is read from ShipBob, an AI agent pulls out the PO number, carrier, expected arrival, ship-to and each box or pallet with its tracking or PRO number and SKU quantities, and picks the fulfillment center that matches the ship-to.
  3. Find the SKU in ShipBob Looks up each SKU to get its ShipBob inventory ID. A SKU that is not set up in ShipBob is noted.
  4. Build the receiving order Puts the boxes and quantities in ShipBob's format and checks for an open receiving order on the same PO, a date already past, a box with no tracking or PRO number, and a ship-to that matches no fulfillment center.
  5. Create the receiving order in ShipBob An ASN with no problems becomes a receiving order with every box and expected quantity. If ShipBob refuses it, the reason goes to Slack.
  6. Get the box labels Saves ShipBob's box labels for the new receiving order as a PDF. The sender gets a reply in the same thread with the receiving order number and the labels attached, to print and put on each box or pallet before it ships. If the labels cannot be saved, the reply still goes out and says the labels follow, and the receiving lead is asked in Slack to send them.
  7. Ask the receiving lead Anything else goes to Slack with the problems, the lines ShipBob knows and a link to the file. Create without those SKUs shows only when the receiving order can still be created.
  8. Wait for the receiving lead's answer The run waits for the click. Create without those SKUs creates the receiving order with the known lines and sends the labels, and the reply names the SKUs left off. Set it aside creates nothing and says so in the Slack thread.

Before you turn it on

  • Connect your Gmail, ShipBob and Slack accounts.
  • Add your Anthropic key in the flow setting Anthropic key.
  • Copy the URL of the block Wait for the receiving lead's answer into the flow setting Answer link. The Slack buttons open it.
  • Pick your Slack channel in the four Slack steps, and narrow the Gmail search to your receiving inbox if it shares a mailbox.