> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Message

Create a message request for an Anthropic model and return the model's generated response.

<Note>
  External Documentation

  To learn more, visit the [Anthropic documentation](https://docs.anthropic.com/en/api/messages).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Adaptive Thinking Effort  | Select the thinking depth to guide adaptive thinking behavior.<br /><br />\* `low` - Minimize thinking. Best for simple, speed-sensitive tasks.<br />\* `medium` - Use moderate thinking. May skip thinking for very simple queries.<br />\* `high` - Always think with deep reasoning on complex tasks. This is the default when omitted.<br />\* `xhigh` - Think deeply with extended exploration. Not supported on all models.<br />\* `max` - Think with no constraints on depth. Not supported on all models.<br /><br />**Note**: Only applicable when `Thinking` is set to `adaptive`.<br /><br />For more information about the `Adaptive Thinking Effort` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/docs/build-with-claude/adaptive-thinking).                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | Disable Parallel Tool Use | When checked - restrict the model to use at most one tool at a time and preventing parallel tool usage.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  | Max Tokens                | The maximum number of tokens to generate before stopping.<br /><br />Different models have different maximum values for this parameter. Visit [Anthropic documentation](https://docs.anthropic.com/en/docs/about-claude/models/all-models) for more details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | Messages                  | The content of the current conversation with the model.<br /><br />For example:<br /><pre><code>\[<br />  \{"role": "user", "content": "Hello there."},<br />  \{"role": "assistant", "content": "Hi, I'm Claude. How can I help you?"},<br />  \{"role": "user", "content": "Can you explain LLMs in plain English?"}<br />]</code></pre>For more information about the `Messages` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/docs/about-claude/models/all-models) for more details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | Model                     | The model that will complete your prompt.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | Thinking                  | The extended thinking to use before responding.<br /><br />\* `enabled` - Use a fixed token budget for internal reasoning. Not supported on all models.<br />\* `adaptive` - Let the model decide when and how much to think. Use `Adaptive Thinking Effort` to control thinking depth. Recommended for models that support adaptive thinking.<br />\* `disabled` - Do not use extended thinking.<br /><br />**Notes**: <br />\* When set to `enabled`, a minimum budget of `1024` tokens is required.<br />\* Thinking can be used together with `Tools` in the same request. When thinking is `enabled`, set `Tool Choice` to `auto` or `none` only. With `adaptive` thinking, the model can reason between tool calls.<br /><br />For more information about the `Thinking` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking).                                                                                                                                                                                                                                                                                                                                                              |
  | Thinking Budget Tokens    | The number of tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems which improves response quality.<br /><br />**Note**: Must be at least `1024` and less than the `Max Tokens` value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | Tool Choice               | Define how the model should use the provided tools.<br /><br />The model can:<br />\* `auto` - Decide by itself.<br />\* `any` - Use any available tool.<br />\* `tool` - Use a specific tool.<br />\* `none` - Not use tools at all.<br /><br />**Note**: This parameter may only be specified while providing `Tools`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
  | Tool Choice Name          | The name of the tool to use.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | Tools                     | Definitions of tools that the model may use.<br /><br />Each tool definition includes:<br />\* `name` - Name of the tool.<br />\* `description` - Optional, but strongly-recommended description of the tool.<br />\* `input_schema` - JSON schema for the tool input shape that the model will produce in `tool_use` output content blocks.<br /><br />For example:<br /><pre><code>\[<br />  \{<br />    "name": "get\_stock\_price",<br />    "description": "Get the current stock price for a given ticker symbol.",<br />    "input\_schema": \{<br />      "type": "object",<br />      "properties": \{<br />        "ticker": \{<br />          "type": "string",<br />          "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."<br />        }<br />      },<br />      "required": \["ticker"]<br />    }<br />  }<br />]</code></pre>**Note**: Tools can be used together with `Thinking` in the same request. When thinking is `enabled`, set `Tool Choice` to `auto` or `none` only. For multi-turn tool use, include thinking blocks from prior responses in `Messages`.<br /><br />For more information about the `Tools` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/api/messages#body-tools). |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Stop Sequences      | A comma-separated list of character sequences that will stop output generation. If specified, the response will stop at the first appearance of a `Stop Sequence`. The stop sequence will not be included as part of the response.<br /><br />Example: `STOP,END`                                                                                                                                                                                                                                                                             |
  | System Instructions | Context and instructions to provide to the model, such as specifying a particular goal or role.<br /><br />For example:<br /><pre><code>You are a seasoned data scientist at a Fortune 500 company.</code></pre>For more information about the `System` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/system-prompts).                                                                                                                                                   |
  | Temperature         | The randomness of the output.<br /><br />Values can range from `0.0` to `1.0`.<br /><br />**Note**: Setting a non-default value may not be supported on all models.                                                                                                                                                                                                                                                                                                                                                                           |
  | Top K               | Limit the model to only consider the top K most likely options when selecting each word. This reduces random or unusual responses by filtering out less probable choices. For most cases, using `Temperature` is sufficient.<br /><br />Valid values are larger than `0`.<br /><br />**Note**: Setting a non-default value may not be supported on all models.<br /><br />For more information about the `Top K` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/api/messages#body-top-k).                           |
  | Top P               | Control text variety by only considering the most likely words whose combined probability reaches the specified `Top P` value. This helps balance creativity and relevance in responses.<br /><br />Values can range from `0.0` to `1.0`.<br /><br />**Note**: Either use this parameter or `Temperature`, but not both. Setting a non-default value may not be supported on all models.<br /><br />For more information about the `Top P` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/api/messages#body-top-p). |
  | User ID             | An external identifier for the user who is associated with the request.<br /><br />For more information about the `User ID` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/api/messages#body-metadata-user-id).                                                                                                                                                                                                                                                                                                     |
</div>

## Example Output

```json theme={"dark"}
{
	"content": [
		{
			"text": "Hi! My name is Claude.",
			"type": "text"
		}
	],
	"id": "msg_013Zva2CMHLNnXjNJJKqJ2EF",
	"model": "claude-3-7-sonnet-20250219",
	"role": "assistant",
	"stop_reason": "end_turn",
	"stop_sequence": null,
	"type": "message",
	"usage": {
		"input_tokens": 2095,
		"output_tokens": 503
	}
}
```

## Workflow Library Example

[Create Message with Anthropic and Send Results Via Email](https://library.blinkops.com/workflows/create-message-with-anthropic-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-message-with-anthropic-and-send-results-via-email/canvas" />
</div>
