> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.avada.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to integrate with AVADA PDF Invoice

AVADA Email Marketing allows you to send order confirmation emails with PDF Invoice link attached on email so that customers can easily download/print it.

In order to have that email type, you need to:
1. Integrate AVADA Email Marketing with PDF Invoice app.
2. Set up PDF Invoice app
3. Create PDF Invoice email on AVADA Email Marketing

# 1. Integrate AVADA Email Marketing with PDF Invoice

You need to install both AVADA Email Marketing and PDF Invoice so that you can send emails attached PDF Invoice to your customers by AEM.

- Install [AVADA Email Marketing](https://app.avada.io/login) app here.
- Install the [PDF Invoice](https://pdfinvoice.apps.avada.io/) app here

After installing both apps, please do as follow:

**Step 1**: Get Credentials to connect two apps from AVADA  Email Marketing:
Form AVADA Email Marketing dashboard > click **Manage keys** (at the top right corner)

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/1_i1l7l7.png)

Copy App ID and Secret Key:

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/akxuhza_15knmae.png)

If there is no **Secret Key**, press **Generate Key**, then copy the key

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/7dl74t8_11zm3h2.png)

-  **Step 2**: Enter the keys to PDF Invoice App
From App PDF Invoice Dashboard > **Integration**

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/3_si6irh.png)

Enter the Key you have just copied from AVADA  Email Marketing to the corresponding fields.
After entering the keys, click **Connect**

# 2. Set up the PDF Invoice app

Step 1: Set up PDF Invoice app here

- [How to configure store information in PDF Invoice?](http://support.avada.io/support/solutions/articles/47001137467-how-to-configure-store-information-in-pdf-invoice-)

- [How to create new templates in PDF Invoice App?](http://support.avada.io/support/solutions/articles/47001137466-how-to-create-new-templates-in-pdf-invoice-app-)

- [Full guide](http://support.avada.io/support/solutions/folders/47000768408)

**Step 2**: Setting Automation Email on PDF Invoice app

From app dashboard of **PDF Invoice** > **Automation Email**

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/g5ismkf_4diudn.png)

- **Custom PDF File Name**: Enter a name for the PDF file, note to the correct format .pdf

- **PDF Attached Template**: Select the **Template** you want to display in the PDF file

- **Send Automation Email**: Enable to send mail Automation inside PDF Invoice app

- **Send Email by AVADA Email Marketing**: Enable to send mail from AVADA Email Marketing

**Note** you can only choose to send PDF Invoice email via PDF Invoice or AVADA Email Marketing

# 3. Create PDF Invoice Email in **AVADA Marketing Automation**

From AVADA Email Marketing app:
- **Step 1**: Go to **Messages > Automation> New Workflow**

- **Step 2**: Select **Integration > AVADA PDF Invoice**

- **Step 3**: Choose workflow preset **PDF Invoice Email** and **Next**

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/5_1qeiyqi.png)

- **Step 4**: Edit workflow

You can edit the pre-made email here. Or add more items into your workflow (see left menu)

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/6_1e328rd.png)

See more guides:

- [Add a new email/sms to the workflow](https://help.avada.io/help/how-to-edit-an-email-on-automation-workflow/)

- [Add wait time/certain time to send email](https://help.avada.io/help/how-to-configure-wait-time-certain-time-on-an-automation-workflow/)

- [Add Yes/No Split to the workflow](https://help.avada.io/help/how-to-add-yes-no-split-to-automation-campaign/)

- [Add Multiple Split to the workflow](https://help.avada.io/help/how-to-add-multiple-splits-to-avada-automation-workflow/)

- [Add A/B testing ](https://help.avada.io/help/how-to-set-up-a-b-testing-split-in-automation-workflows/)

- [Add Exit workflow](https://help.avada.io/help/how-to-use-exit-event-in-automation-workflows/)