Gpt and aitable connection

Hello

I created an automation to send my invoices on drive then, thanks to another one, I want to recover them, then scan them thanks to an OCR, then send them to ChatGPT to obtain a table of my lines of purchases. That is good! It is after that it gets difficult! I want now to send this table to the airtable only impossible in spite of my efforts and research to find the solution. Can you help me?

here’s the gpt chat prompt:

"I want you to act as an accountant. The company you work for is called PALOMAR. Your job is to process the incoming invoices your company receives. Your task is to specifically extract certain data from each incoming invoice for further invoice processing.

The results will be displayed in a results table.

Here’s the text: {{14.fullTextAnnotation.text}}The data you’re looking for is as follows:

Name of the supplier issuing the invoice (i.e. the company that issued the invoice),

Invoice date (i.e. the date on which the invoice was issued),

Product name (i.e. its designation by the supplier)

Purchased format (i.e. the format in which the product is delivered, e.g. 1CA = 1 carton),

Invoice number (i.e. the invoice’s unique identifier),

quantity invoiced, and if there is no quantity invoiced, then take the purchase quantity of the product

unit price: the unit price of the product

Total product amount (i.e. the total amount to be paid, including tax (excluding any currency sign, use the amount in Canadian dollars if two options are available)

Invoice email (i.e. the email address of the company issuing the invoice)Invoice currency: (i.e. the currency of the total amount, EUR or USD)

Invoice date must be formatted as dd.mm.yyyy.

The invoicing company can never be PALOMAR. If you find only this result, please reconsider your answer and start your search again.

You will process this data in table form, with column names in the following order:

  • Invoice no. -date - Supplier - name of product _ format purchased - quantity invoiced - unit price - total



Thank you

Perhaps you can try using the “Transform a text to structured data” module instead.

E.g.:

2 Likes

thanks for the help :wink: but it sends me back an error

Welcome to the Make community!

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module and select “Download output bundles”.
Screenshot_2023-10-06_141025

A.

Save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading it here will look like this:

bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted output bundle in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

2 Likes

Voici mon JSON si jamais ça peut aider
blueprint (1).json (29.3 KB)

You are using the wrong variable. The first is not a “string”, hence the error message.

Screenshot_2024-01-07_120152

If you want to learn more about Make, you can read up in the Help Center. I also recommend doing the tutorials in the Make Academy, and learn advanced skills like how to make custom apps to any API in the Make Partner Training Portal - both have certificates for successful completion.

2 Likes

Hello

In the end I switched to chat gpt and I succeeded but I have a downside, the last module of chat gpt only processes the first line of my invoice instead of processing and sending the entire invoice to airtable. Does anyone have any ideas?



blueprint.json (64.8 KB)