Anthropic
![Anthropic Anthropic](/media/blogimg/auto/en/6e0ba0339bb59f6a4fba00ee633080e5.png)
Integration with Anthropic is implemented as a separate AI TOOLS (ChatGPT) block, which can be placed between the Source and Destination of data. This will allow you to create a query based on data from the Data Source and pass data from Anthropic to the Data Ingest fields. This way you can automatically receive data from Anthropic and transfer it to the services and systems that you use.
The function allows you to create a request in Anthropic and send the result of the request to Data Destination.
Navigation:
Connecting Google Sheets as a Data Source:
1. What data can you get from Google Sheets?
2. How to connect your Google Sheets account to ApiX-Drive?
3. Select the table and sheet from which rows will be unloaded.
4. An example of data that will be transferred from Google Sheets.
Connecting Anthropic:
1. What data can be obtained from Anthropic ?
2. How to connect your Anthropic account to ApiX-Drive?
3. How to configure data search in Anthropic in the selected action?
Claude 3.5 Sonnet
Claude 3 Opus
Claude 3 Sonnet
Claude 3 Haiku
4. An example of data that will be transferred from Anthropic .
Setting up row updates in Google Sheets:
1. What will the Google Sheets integration do?
2. How to connect your Google Sheets account to ApiX-Drive?
3. How can I configure the selected action to transfer data to Google Sheets?
4. Example of data that will be sent to your Google Sheets.
5. Auto-update and communication interval.
Setting up Data SOURCE: Google Sheets
Let's look at how the function of requesting data from Anthropic and sending the result to Google Sheets works.
First, you need to create a new connection.
![Setting up Anthropic in Google Sheets | Creating a connection Setting up Anthropic in Google Sheets | Creating a connection](/media/blogimg/auto/en/3f3232c162ea01835f4aec768b4fd8fb.png)
Select the system as the Data Source. In this case, you must specify Google Sheets.
![Setting up Anthropic in Google Sheets | System selection Setting up Anthropic in Google Sheets | System selection](/media/blogimg/auto/en/579c385c9535dda9da57a8b4e12a7a98.png)
Next, you need to specify the action "Get ROWS (new)".
![Setting up Anthropic in Google Sheets | Action selection Setting up Anthropic in Google Sheets | Action selection](/media/blogimg/auto/en/499797dd7c7bcf4c6660250a85474150.png)
The next step is to select the Google Sheets account from which the data will be uploaded.
If there are no logins connected to the system, click "Connect account".
![Setting up Anthropic in Google Sheets | Connecting account Setting up Anthropic in Google Sheets | Connecting account](/media/blogimg/auto/en/2ef45cd5a953b9a7f1144927c0004dc8.png)
Select which account you want to connect to ApiX-Drive and provide all permissions to work with this account.
![Setting up Anthropic in Google Sheets | Connecting account Setting up Anthropic in Google Sheets | Connecting account](/media/blogimg/auto/en/f6f9cae2858fbe14b7a8673c2d061073.png)
![Setting up Anthropic in Google Sheets | Connecting account Setting up Anthropic in Google Sheets | Connecting account](/media/blogimg/auto/en/ab6a616673d1fb69a521edd2bafd502b.png)
![Setting up Anthropic in Google Sheets | Connecting account Setting up Anthropic in Google Sheets | Connecting account](/media/blogimg/auto/en/4cb5c85e3775f892fa0ce503ccffaf34.png)
![Setting up Anthropic in Google Sheets | Connecting account Setting up Anthropic in Google Sheets | Connecting account](/media/blogimg/auto/en/a99db5079671ee766e5bd9291b74bde7.png)
When the connected account appears in the "active accounts" list, select it for further work.
Attention! If your account is on the "inactive accounts" list, check your access to this login!
![Setting up Anthropic in Google Sheets | Account selection Setting up Anthropic in Google Sheets | Account selection](/media/blogimg/auto/en/ff730d10a33734d64d039f0c2cdcd04d.png)
Select the Google Sheets table and sheet where the data you need is located.
![Setting up Anthropic in Google Sheets | Table and Sheet Selection Setting up Anthropic in Google Sheets | Table and Sheet Selection](/media/blogimg/auto/en/309e8a170290f54ae74afcb6d866e842.png)
If necessary, you can set up a Data Filter, or click "Continue" to skip this step.
To find out how to setup the Data Filter, follow the link: https://apix-drive.com/en/help/data-filter
![Setting up Anthropic in Google Sheets | Data filter Setting up Anthropic in Google Sheets | Data filter](/media/blogimg/auto/en/f68487ae3ca1e619c79b25a3fd678760.png)
Now you can see the test data for one of the rows in your Google Sheets.
If you want to update the test data - click "Load test data from Google Sheets".
If you want to change the settings - click "Edit" and you will go back one step.
![Setting up Anthropic in Google Sheets | Test data Setting up Anthropic in Google Sheets | Test data](/media/blogimg/auto/en/7b9efef3fe4205a572c6819895d988f6.png)
Now we connect the additional OpenAI block (ChatGPT). To do this, click on “+” and select “AI (GPT-Chat)” from the list.
![Setting up Anthropic in Google Sheets | Add Anthropic block Setting up Anthropic in Google Sheets | Add Anthropic block](/media/blogimg/auto/en/0180d35d948563c889a114869e9fa1d1.png)
Setting up Anthropic
Select "Anthropic" as the system in which the search will be performed.
![Setting up Anthropic in Google Sheets | System selection Setting up Anthropic in Google Sheets | System selection](/media/blogimg/auto/en/e77ca88a50f65058d90ff35185c119c5.png)
Next, you need to specify the action, for example, "Send PROMPT".
![Setting up Anthropic in Google Sheets | Action selection Setting up Anthropic in Google Sheets | Action selection](/media/blogimg/auto/en/b88efe7a1b323527b97b9b0d23a92e6b.png)
- Send PROMPT - allows you to send a request to Anthropic for gerating, editing and translating data.
The next step is to select an Anthropic account.
If there are no logins connected to the ApiX-Drive system, click “Connect account”.
![Setting up Anthropic in Google Sheets | Connecting account Setting up Anthropic in Google Sheets | Connecting account](/media/blogimg/auto/en/b990f996225bf46e87a1ffc561fbd121.png)
Enter the API key found in your Anthropic account settings.
Go to your Anthropic account, click on the "API keys" tab in the upper right corner, then click on "Create API key" and enter a name for your key. Copy the API key and paste it into the appropriate field of the account connection window in the ApiX-Drive system.
Click "Save and select the connected Anthropic account from the drop-down list.
![Setting up Anthropic in Google Sheets | Account conection Setting up Anthropic in Google Sheets | Account conection](/media/blogimg/auto/en/dcf5d6ffbbc36fc664237d7b925a618a.png)
![Setting up Anthropic in Google Sheets | Account conection Setting up Anthropic in Google Sheets | Account conection](/media/blogimg/auto/en/20f67504ddfcd6a3d6a35bb1a003c1fe.png)
![Setting up Anthropic in Google Sheets | Account conection Setting up Anthropic in Google Sheets | Account conection](/media/blogimg/auto/en/b8f818763f0afb43ad1985d8e933a869.png)
![Setting up Anthropic in Google Sheets | Account conection Setting up Anthropic in Google Sheets | Account conection](/media/blogimg/auto/en/2aa8855d0e9126ce4d0a3f9c094fb0ca.png)
When the connected account appears in the "active accounts" list, select it for further work.
Attention! If your account is on the "inactive accounts" list, check your access to this login!
![Setting up Anthropic in Google Sheets | Account selection Setting up Anthropic in Google Sheets | Account selection](/media/blogimg/auto/en/de8e5301490a53791d57a6f492209b37.png)
Now you need to select the Anthropic Model. The choice of model depends on your application.
Claude 3.5 Sonnet - has the highest level of intelligence and capability. Training based on April 2024 data.
Claude 3 Opus - high level of intelligence, capability and understanding. A reasonably fast model. Data-driven training August 2023.
Claude 3 Sonnet - has a balance of speed and level of intelligence. Data-driven learning August 2023.
Claude 3 Haiku - is the fastest and most compact model, providing almost instant registration. It is also the cheapest model. Data-driven training August 2023.
Answering Anthropic knowledge base questions and generating text
In this case, select "Claude 3.5 Sonnet".
![Setting up Anthropic in Google Sheets | Setting up Anthropic Setting up Anthropic in Google Sheets | Setting up Anthropic](/media/blogimg/auto/en/1e9e4bbe437abb182d5c7f7ec41f55fb.png)
![Setting up Anthropic in Google Sheets | Setting up Anthropic Setting up Anthropic in Google Sheets | Setting up Anthropic](/media/blogimg/auto/en/4996f78817eba73e7d46f2c006ea403c.png)
- Prompt - in this field you need to assign which variable of the Data Source table contains the data for which the query will be made on the Anthropic server, in our case, this is column “A”.
- Presence penalty - This parameter is used to encourage the model to include a variety of tokens in the generated text. This is the value that is subtracted from the log likelihood of the token each time it is generated. A higher Presence Penalty value will cause the model to be more likely to generate tokens that were not already included in the generated text.
- Temperature - can range from 0 to 2. Higher values such as 0.8 will make the output more random, while lower values such as 0.2 will make it more focused and deterministic.
![Setting up Anthropic in Google Sheets | Assigning fields Setting up Anthropic in Google Sheets | Assigning fields](/media/blogimg/auto/en/18ad37d7d5719d76ac4a0b8b51f5fc5d.png)
Now you see test data for your request. You can pass this data to your reception table.
If test data does not appear automatically, click "Search in Anthropic".
If you are not satisfied with something, click “Edit”, go back a step and change the search field settings.
![Setting up Anthropic in Google Sheets | Test data Setting up Anthropic in Google Sheets | Test data](/media/blogimg/auto/en/bc813f80e9efce215345b447f589b3e6.png)
Generation and editing of text according to the request
In this case, select "Claude 3 Opus".
![Setting up Anthropic in Google Sheets | Assigning fields Setting up Anthropic in Google Sheets | Assigning fields](/media/blogimg/auto/en/cf46400dfa7eaf03e49a29f914cca6de.png)
- Prompt - in this field you need to assign which variable of the Data Source table contains the data for which the query will be made on the Anthropic server, in our case, this is column “A”.
- Presence penalty - This parameter is used to encourage the model to include a variety of tokens in the generated text. This is the value that is subtracted from the log likelihood of the token each time it is generated. A higher Presence Penalty value will cause the model to be more likely to generate tokens that were not already included in the generated text.
- Temperature - can range from 0 to 2. Higher values such as 0.8 will make the output more random, while lower values such as 0.2 will make it more focused and deterministic.
![Setting up Anthropic in Google Sheets | Assigning fields Setting up Anthropic in Google Sheets | Assigning fields](/media/blogimg/auto/en/88eb96f4a8e2b064ff312084e88872b8.png)
Now you see test data for your request. You can pass this data to your reception table.
If test data does not appear automatically, click "Search in Anthropic".
If you are not satisfied with something, click “Edit”, go back a step and change the search field settings.
![Setting up Anthropic in Google Sheets | Test data Setting up Anthropic in Google Sheets | Test data](/media/blogimg/auto/en/29259f23ee5b7dd92b10ebd1a4093df4.png)
![Setting up Anthropic in Google Sheets | Test data Setting up Anthropic in Google Sheets | Test data](/media/blogimg/auto/en/f210af900843e6ee3a98b54927b963c7.png)
Mathematical calculations and modelling
In this case, select "Claude 3 Sonnet".
![Setting up Anthropic in Google Sheets | Assigning fields Setting up Anthropic in Google Sheets | Assigning fields](/media/blogimg/auto/en/9620423dcef3c268296df0ed8476bc94.png)
![Setting up Anthropic in Google Sheets | Assigning fields Setting up Anthropic in Google Sheets | Assigning fields](/media/blogimg/auto/en/8fccf7693fbf749723877a0132557f85.png)
- Prompt - in this field you need to assign which variable of the Data Source table contains the data for which the query will be made on the Anthropic server, in our case, this is column “A”.
- Presence penalty - This parameter is used to encourage the model to include a variety of tokens in the generated text. This is the value that is subtracted from the log likelihood of the token each time it is generated. A higher Presence Penalty value will cause the model to be more likely to generate tokens that were not already included in the generated text.
- Temperature - can range from 0 to 2. Higher values such as 0.8 will make the output more random, while lower values such as 0.2 will make it more focused and deterministic.
![Setting up Anthropic in Google Sheets | Assigning fields Setting up Anthropic in Google Sheets | Assigning fields](/media/blogimg/auto/en/68b0feb4263d6fd1180047601ed74161.png)
Now you see test data for your request. You can pass this data to your reception table.
If test data does not appear automatically, click "Search in Anthropic".
If you are not satisfied with something, click “Edit”, go back a step and change the search field settings.
![Setting up Anthropic in Google Sheets | Test data Setting up Anthropic in Google Sheets | Test data](/media/blogimg/auto/en/5d180b232d055232eda1c3eba97151d0.png)
![Setting up Anthropic in Google Sheets | Test data Setting up Anthropic in Google Sheets | Test data](/media/blogimg/auto/en/f36c991b88a5fe2c8573570fac2917fb.png)
Data analysis and structuring
In this case, select "Claude 3 Haiku".
![Setting up Anthropic in Google Sheets | Assigning fields Setting up Anthropic in Google Sheets | Assigning fields](/media/blogimg/auto/en/0dda304c635d8f07d639f1053d2b9ab8.png)
![Setting up Anthropic in Google Sheets | Assigning fields Setting up Anthropic in Google Sheets | Assigning fields](/media/blogimg/auto/en/d3b5ee6d3192fc3c972173c3234768c4.png)
- Prompt - in this field you need to assign which variable of the Data Source table contains the data for which the query will be made on the Anthropic server, in our case, this is column “A”.
- Presence penalty - This parameter is used to encourage the model to include a variety of tokens in the generated text. This is the value that is subtracted from the log likelihood of the token each time it is generated. A higher Presence Penalty value will cause the model to be more likely to generate tokens that were not already included in the generated text.
- Temperature - can range from 0 to 2. Higher values such as 0.8 will make the output more random, while lower values such as 0.2 will make it more focused and deterministic.
![Setting up Anthropic in Google Sheets | Assigning fields Setting up Anthropic in Google Sheets | Assigning fields](/media/blogimg/auto/en/e93240d82a8da0e0e2248c6c956449c2.png)
Now you see test data for your request. You can pass this data to your reception table.
If test data does not appear automatically, click "Search in Anthropic".
If you are not satisfied with something, click “Edit”, go back a step and change the search field settings.
![Setting up Anthropic in Google Sheets | Test data Setting up Anthropic in Google Sheets | Test data](/media/blogimg/auto/en/e3abfaeffdf44a51f9a3bd4e2fb543bd.png)
![Setting up Anthropic in Google Sheets | Test data Setting up Anthropic in Google Sheets | Test data](/media/blogimg/auto/en/fa42ba5407ab200823d006a039fd5f86.png)
This completes the configuration of Anthropic data!
Now we can start setting up Google Sheets as a Data Receiver system.
To do this, click "Add Data Destination".
![Setting up Anthropic in Google Sheets | System selection Setting up Anthropic in Google Sheets | System selection](/media/blogimg/auto/en/475ce9cac597436618a0e1f40f1a392b.png)
Setup Data Destination system: Google Sheets
Select the system as Data Destination. In this case, you must specify Google Sheets.
![Setting up Anthropic in Google Sheets | System selection Setting up Anthropic in Google Sheets | System selection](/media/blogimg/auto/en/e093275a7c7718c209af9ebac502f47e.png)
Next, you need to specify the action "Update ROW".
![Setting up Anthropic in Google Sheets | Action selection Setting up Anthropic in Google Sheets | Action selection](/media/blogimg/auto/en/0b9bd3975952c39ec6f4b4cc0be42e68.png)
The next step is to select a Google Sheets account into which the result of the Anthropic request will be transferred. If this is the same account, then we select it.
If you need to connect another login to the system, click “Connect account” and repeat the same steps described when connecting Google Sheets as a Data Source.
![Setting up Anthropic in Google Sheets | Account selection Setting up Anthropic in Google Sheets | Account selection](/media/blogimg/auto/en/fbadf2381fc3c4ef53c3c2f0263e1687.png)
Now you need to select the File (Table) and Sheet in which the status of Anthropic will be updated.
In the "Search column" field, you need to select the column by which the data will be searched. That is, where to look for data in the table.
Next, in the "Search" field, you need to select a variable from the drop-down list or enter the data manually, by which value the system will search for data to update the row you need. In our case, we select column "A", which contains the data about the request. The system will update the data in the desired row only if it matches the requested data.
Also, you need to specify the Search Type, in case several rows with the same query are found:
"Take the first found row" - searching and updating data will occur in the first found row that satisfies the search conditions.
"Take the last found row" - searching and updating data will occur in the last found row that satisfies the search conditions.
"Take all found rows" - search and update of data will be performed on all found rows that satisfy the search conditions.
Now you need to assign a variable with the result of the query, which we take from the Data Search block, to the empty column. In the future, this column will be updated according to your request.
After setting, click "Continue".
![Setting up Anthropic in Google Sheets | Assigning fields Setting up Anthropic in Google Sheets | Assigning fields](/media/blogimg/auto/en/6444f471ea7203d7fd22bc3024534569.png)
![Setting up Anthropic in Google Sheets | Assigning fields Setting up Anthropic in Google Sheets | Assigning fields](/media/blogimg/auto/en/039256c5f95c7dd94ccfb9a25f20f481.png)
Thus, the Anthropic block takes the field in the Data Source in which you have written the request text, queries the OpenAI server (ChatGPT) for the result of this request and transfers this data to the Data Reception field, for example, in column “B”.
![Setting up Anthropic in Google Sheets | Test data Setting up Anthropic in Google Sheets | Test data](/media/blogimg/auto/en/a2932982c8f53aedbc5e8a6971c3f1c9.png)
![Setting up Anthropic in Google Sheets | Test data Setting up Anthropic in Google Sheets | Test data](/media/blogimg/auto/en/de85819e51384b958959ff4bc31a6e73.png)
This completes the Data Destination system setup!
Now you can start choosing the update interval and enabling auto-update.
To do this, click "Enable update".
![Setting up Anthropic in Google Sheets | Completing setup Setting up Anthropic in Google Sheets | Completing setup](/media/blogimg/auto/en/9a12fd36862fce672eb666b042abd0fb.png)
On the main screen, click on the gear icon to select the required update interval or set up scheduled launch. To start the connection by time, select scheduled start and specify the desired time for the connection update to fire, or add several options at once when you need the connection to fire.
Attention! In order for the scheduled run to work at the specified time, the interval between the current time and the specified time must be more than 5 minutes. For example, you select the time 12:10 and the current time is 12:08 - in this case, the automatic update of the connection will occur at 12:10 the next day. If you select the time 12:20 and the current time is 12:13 - the auto-update of the connection will work today and then every day at 12:20.
To make the current connection transmit data only after another connection, check the box "Update connection only after start other connection" and specify the connection after which the current connection will be started.
![Setting up Anthropic in Google Sheets | Update interval Setting up Anthropic in Google Sheets | Update interval](/media/blogimg/auto/en/a6546b034ac5620de0a276590c613cd7.png)
![Setting up Anthropic in Google Sheets | Update priority Setting up Anthropic in Google Sheets | Update priority](/media/blogimg/auto/en/8a08bcb7bf75bab37b363c6d5c581a6c.png)
![Setting up Anthropic in Google Sheets | Enable auto-update Setting up Anthropic in Google Sheets | Enable auto-update](/media/blogimg/auto/en/109a8bd97750fdd072f0b69541328a66.png)
This completes the setup of Anthropic! Everything is quite simple!
Now don't worry, ApiX-Drive will do everything on its own!