This recipe automates the process of invoice generation in Xero. When a deal stage is updated in Recruit CRM to one or more specific stages, an invoice is automatically created in Xero. If there is an error during this process, the recipe raises an exception with details about the error.
🔗 How to connect your Recruit CRM app in Workflow Automation
1. Navigate to Admin Settings >>> Workflow Automation & Integrations.
2. Click on the Connections tab under the 'Workflows' section and click on the 'Create' button >>> 'Connection'.
3. Use the search bar to search for the Recruit CRM app and connect it by selecting it and entering the API key.
Once the app is successfully connected, you will be able to see a message as 'Connection Established'.
🔗 How to connect your Xero app in Workflow Automation
1. Navigate to Admin Settings >>> Workflow Automation & Integrations.
2. Click on the Connections tab under the 'Workflows' section and click on the 'Create' button >>> 'Connection'.
3. Use the search bar to search for the Xero app and connect it by selecting it
Once all the required apps are connected, you can select the connected account inside the related steps of the recipe from here.
📋 Overview of each step in the Recipe
1. Trigger: New Deal Stage Updated in Recruit CRM
This is the starting point of the automation. It gets triggered whenever a deal's stage is updated in Recruit CRM.
2. Actions:
Monitor step:
It helps in monitoring the following actions for errors. This makes the automation more reliable.
IF Condition:
Checks whether the Deal stage is Generate Invoice or Won and
If yes, it continues to the next step, and generates an invoice in Xero
If no, then no further action is taken.
Error Handler:
If something fails within the Monitor block, then this step is triggered. The Retry Logic ensures that if the errors match those specified (429, 500–504), it retries the monitored actions up to 3 times. If the error continues after 3 retries, or if the error doesn’t match the handled types, the automation stops.
Hope this helps!😊

![Screen Recording 2025-05-04 at 6.48.38 PM.mov [video-to-gif output image]](https://downloads.intercomcdn.com/i/o/t8m01b3j/1569202561/94fa6798825d67ec09fc83cf56dd/ezgif-8217423ec47417.gif?expires=1790081100&signature=d4ac439b3b547daa2da7389f99f52e95bf43f0e5b45790fed08fad224f42e117&req=dSUhH8t%2Bn4RZWPMW1HO4zcY7k1VWsxXWagPTblr45QMwnGpjYmqfmC81Dj1x%0ApER9gxlIP46gLJQJNn0%3D%0A)
![Screen Recording 2025-06-13 at 2.52.31 PM.mov [video-to-gif output image]](https://downloads.intercomcdn.com/i/o/t8m01b3j/1569207507/f4b8bc71f0222392fc48c4a47998/ezgif-61f3894ab2c5d6.gif?expires=1790081100&signature=0e816c83abbcd433794d874d4b43343460352b0e0ae5218e2fb5e51587041185&req=dSUhH8t%2BmoRfXvMW1HO4zQXinjqahp9NiD2m1XNpxby5KMnw5JukUlV4%2F2dP%0AMuVb97fCokferhd1MCA%3D%0A)