Easily Integrate Anthropic Claude with Power Automate — Full Demo and Guide
Автор: Evangelist Tech
Загружено: 2026-02-06
Просмотров: 189
Описание:
✨ Prerequisites
Before you start, make sure you have:
An Anthropic API key → from https://console.anthropic.com
A Power Automate environment (any license that supports Custom Connectors)
Permission to create Custom Connectors
1️⃣ Create Your Custom Connector
Go to Power Automate → Dataverse → Custom Connectors.
Click + New Custom Connector → Create from blank.
Give it a name (e.g., Anthropic Claude API).
2️⃣ General Settings
Fill in the required details:
Scheme: https
Host: api.anthropic.com
Base URL: /v1
Save and continue.
3️⃣ Add the Security Settings
Anthropic uses API keys via headers.
Go to the Security tab.
Choose API Key.
Set:
Parameter Label: API Key
Parameter Name: x-api-key
Location: Header
Save and continue.
4️⃣ Define the API Action (Messages Endpoint)
Go to Definition.
Click + New Action.
Name it something like: Run Claude Model.
Add a description.
Add the Request
Click Import from Sample.
Select POST.
Enter the URL: https://api.anthropic.com/v1/messages
Sample Body
Use this valid sample payload (Claude 3.x uses the Messages API):
{
"model": "claude-3-sonnet-20240229",
"max_tokens": 500,
"messages": [
{
"role": "user",
"content": "Hello Claude"
}
]
}
Add Required Headers
Power Automate will detect the required headers, but make sure these exist:
x-api-key = your key
anthropic-version = 2023-06-01
content-type = application/json
Response Setup
Add a sample response.
Paste typical response JSON, for example:
{
"id": "msg_123",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Hello! How can I assist you today?"
}
],
"model": "claude-3-sonnet-20240229"
}
This helps Power Automate generate dynamic schema fields.
Save and continue.
Skip the test bit and just save - if you test here it will fail - instead..........
create manual flow:
add your custom connector with the following parameters:
anthropic-version: 2023-06-01
content-type: application/json
body/model: claude-3-haiku-20240307
body/max_tokens: 512
body/messages:
[
{
"role": "user",
"content": "put whatever you want to ask claude here"
}
]
add a compose action so you can see the output
Comment if you get stuck
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: