Twinings: Automation of the document validation process
Twinings

Automation of the document validation process

Automation of the document validation process

From invoice validation to shipping goods overseas — the use of Robotic Process Automation (RPA) enabled Twinings to save nearly five days of human labor per month, while also improving the satisfaction of employees relieved of repetitive, tedious tasks. The bot for validating logistics documents, specifically bills of lading, has accelerated the process by 20 times. This is another digital assistant developed in collaboration with All for One Poland.

From invoice validation to shipping goods overseas — the use of Robotic Process Automation (RPA) enabled Twinings to save nearly five days of human labor per month, while also improving the satisfaction of employees relieved of repetitive, tedious tasks. The bot for validating logistics documents, specifically bills of lading, has accelerated the process by 20 times. This is another digital assistant developed in collaboration with All for One Poland.

The Twinings factory in Swarzędz sends over 300 shipments every month, with more than 200 of them being transported by sea. For each of these shipments, a bill of lading (BL) is required. Issued by the freight forwarder or maritime carrier, this document confirms the conclusion of a transport contract and is necessary for the client to collect the container at the destination port.

The information in the bill of lading must match the invoice; otherwise, there is a risk of the goods being withheld at the port or the import customs clearance being refused on the client’s part. This important document is issued by a third party, beyond Twinings’ control. Therefore, ensuring the consistency between the invoice and the bill of lading (BL), as well as meeting the deadlines for delivering the verified bill of lading is so crucial.

Developed in collaboration with All for One Poland, the bot checks whether all necessary information from the invoice(s) is present in the bill of lading and verifies its accuracy. In case of any discrepancies, it sends a notification to the relevant department within the company. Additionally, the bot monitors the deadlines for the delivery of the draft, revised version, and final version by the logistics partner and sends follow-up messages.

This is the third process – after invoice issuance and the preparation of additional documents – that has been automated over the past dozen or so months at the Polish subsidiary of Twinings.

Validation of bills of lading

The automation of the process involved designing the bot’s operation on two work paths: the checking path and the final (communication) path.

In the checking path, 11 data points in the invoice and bill of lading (BL) document are validated. These include the name and address of the supplier, as well as the name and address of the recipient, shipment-identifying data such as the invoice number, container number, seal number, weight, and volume of goods, as well as packaging types categorized by the so-called HS code (international coding of products in trade).

The data layout in the bill of lading varies depending on the freight forwarder. Additionally, in most cases, the bill of lading is issued in reference to several invoices (up to 5), while at Twinings, nearly all invoices are issued in reference to a single transport unit (container). Additionally, the partners used different naming conventions for the documents.

Previously, the process of checking the consistency of these documents was performed manually by customer service team members and resembled a “spot the difference" game – “find 10 differences between the pictures.” This task added little value to customer interactions, however it was necessary to ensure the consistency of the documents that the customer ultimately received. It was a very tedious, time-consuming, and frustrating task, and carried a high risk of errors.

When the bill of lading referred to a single invoice, the validation took about 5 minutes, but if it referred to multiple invoices, the verification process could extend up to 20 minutes for a single BL document. Currently, the bot requires between 1 minute (for the case of 1 BL – 1 invoice) to a maximum of 4 minutes (for the case of 1 BL – multiple invoices).

The second automation path involves time synchronization with the individual stages of the process, ensuring that the final version of the BL document is available before the expected arrival date of the goods at the destination port (Expected Time of Arrival, ETA).

Knowing the invoice issue date and the start of transport, as well as the expected arrival date of the ship with the container at the destination port, it is possible to plan process checkpoints, namely whether the BL document has been delivered and whether it is correct, and if not, to ensure that the business partner makes the necessary correction. In this part of the process, time is the key factor, so efficient and effective communication with carriers and maritime freight forwarders is crucial for closing the entire document validation process.

Also at this stage of the process, we have noted a reduction in the time it takes to receive a final BL that matches the invoice by almost half – from an average of 20 days before the process automation was implemented to 12 days now.

Automation of invoicing, preparation of additional documents and verification of waybills is just the beginning

Ewa Zandecka, International Customer Supply Manager, R. Twining and Company sp. z o.o.

How it works

For each BL document, the bot is run once a day on a virtual machine. First, the dedicated email inbox is checked. Based on the document titles, the bot identifies whether the email contains a draft, a revised version, or the final document, and then initiates either the checking or final path accordingly. In the last step, a follow-up is prepared (depending on the status of the document: waiting for a draft, revised version or final version).

The appropriate path for the bot is determined by analyzing the email subjects with the reference name and status (draft, revision, final).

If the document is final, the process is relatively simple. The email attachment is downloaded to a temporary folder in SharePoint, where its name is changed according to the adopted standard. Additionally, the bot verifies whether a paper version (to be sent by mail) is required. Finally, there is the cleaning stage, which is the preparation for processing the next document.

The checking path is more complex. In addition to downloading the draft or revised version, the bot also downloads an invoice (as the basis for verification). Next, it identifies a template (handling multiple BL templates from different logistics partners), extracts data from the invoice, and checks whether the BL data matches the data for each invoice in reference to the specific BL.

If a discrepancy is found (it’s worth remembering that several templates are supported, and most are completed by a human and not automatically generated), the relevant information is sent to the team for rechecking by a human but only those places where a discrepancy was identified. Once the discrepancy is confirmed, the specialist can forward the message from the bot to the issuer of the bill of lading. A status annotation is added to the SharePoint list, and the temporary folder is finally cleared.

There are various statuses for documents defined in the checking path that can be set by team members, such as full check, partial check, final version, or excluded (specific cases where the document is excluded from bot operations and subject to manual review only).

The bot also monitors deadlines for BL documents (ETD status, departure). If it detects that the shipment has been dispatched but the draft BL has not yet been provided by the freight forwarder, it sends a follow-up to the freight forwarder. Similarly, if the revised version is not provided on time, the bot sends a reminder.

Additional features and tools

Each day, the team receives a summary report detailing the number of processed documents, their titles, and the actions taken (e.g., how many emails followed the final path, how many went through the checking path, who received follow-ups, detected errors such as missing attachments or incorrect attachment formats).

The bot also handles errors related to incorrect information entered in SharePoint (identifying human mistakes).

The algorithm is configured to check only unread emails; once processed, the emails are archived and removed from the inbox. Email subject lines and the naming conventions for final documents have been standardized. The introduction of automation has also become the basis for holding partners accountable for higher-quality documents and timely delivery. The bot is also more effective at catching errors.

The automation was done using Automation Anywhere tools. The starting point for the bot is a dedicated email inbox, and its working environment is a SharePoint platform and virtual machine. Python scripts were used to communicate with SharePoint.

The project of automating this process took three months to complete, including onboarding logistics partners into a new collaboration model (standardizing email subject lines, sending to a dedicated inbox). On Twinings’ side, two team members from the customer relations department and one from the IT department were involved.

Automation? We're just warming up

Ewa Zandecka, International Customer Supply Manager, R. Twining and Company sp. z o.o. summes up: “The document verification process, which used to take us about five full workdays per month, now involves one person for 15 minutes a day. Digital assistants free people from tedious, thankless tasks that do not add value in themselves but deliver valuable outcomes. Yet, they have not made human labor obsolete. Employee involvement remains essential, though in a transformed capacity. Freed from tedious tasks, an employee oversees the process, becoming more effective, engaged, and creative. Since we started introducing process automation, employee satisfaction with their work has doubled, as we observe in our annual employee satisfaction survey, which maintains a continuous upward trend.

We are not laying off employees, on the contrary. We equip them with new skills and competencies, offering the opportunity to work in a different, more modern environment. We show them that everyone can have a real and positive impact on changing workplace culture. We foster a sense of empowerment, design development paths together, and promote employees. By freeing up time and potential, we could assign some employees to the project team responsible for implementing a new operating system in the company.

The automation of invoice generation, preparation of supplementary documents, and validation of bills of lading is just the beginning. Our success is inspiring other teams within the organization to look closer at their processes in terms of automation. Leveraging our experience and working with a proven partner like All for One Poland, we are already active in sales and distribution and more broadly in the entire supply chain.

Twinings

was founded in 1706 in London. Today it is the world’s second largest tea producer. The company’s best-known products include Earl Grey, Lady Grey and English Breakfast. The company is owned by Associated British Foods, one of the largest food corporations in Europe. The Twinings factory in Swarzędz – R. Twining and Company sp. z o.o. – began operations in 2011 and has recently become the largest and one of the most modern and automated production facilities. Currently, over 400 tea blends are produced in Swarzędz and shipped to nearly 120 countries around the world.

Write us Call us Send email






    1. Personal data is processed pursuant to Article 6 (1) (a) of the Regulation of the European Parliament and of the Council (EU) 2016/679 of April 27, 2016 – the General Data Protection Regulation
    2. The data controller is All for One Poland sp. z o.o. with its registered office in Złotniki, ul. Krzemowa 1 62-002 Suchy Las. Contact data of the Data Protection Supervisor: iod@all-for-one.com.
    3. Consent to data processing is voluntary, but necessary for contact. Consent may be withdrawn at any time without prejudice to the lawfulness of the processing carried out on the basis of consent prior to its withdrawal.
    4. The data will be processed for the purposes stated above and until this consent is withdrawn, and access to the data will be granted only to selected persons who are duly authorised to process it.
    5. Any person providing personal data shall have the right of access to and rectification, erasure, restriction of processing, the right to object to the processing and to the transfer of data, the right to restriction of processing and the right to object to the processing, the right to data transfer.
    6. Every person whose data is processed has the right to lodge a complaint with the supervisory authority, which is the President of the Personal Data Protection Office (ul. Stawki 2, 00-193 Warsaw).
    7. Personal data may be made available to other entities from the group that All for One Poland sp. z o.o. is part of – also located outside the European Economic Area, for marketing purposes. All for One Poland ensures that the data provided to these entities is properly secured, and the person whose data is processed has the right to obtain a copy of the data provided and information on the location of the data provision.

    +48 61 827 70 00

    The office is open
    Monday to Friday
    from 8am to 4pm (CET)

    General contact for the company
    office.pl@all-for-one.com

    Question about products and services
    info.pl@all-for-one.com

    Question about work and internships
    kariera@all-for-one.com

    This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.