> For the complete documentation index, see [llms.txt](https://dnotifier.gitbook.io/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dnotifier.gitbook.io/product-docs/ai/multi-models/aws-bedrock-integration.md). Agents can also search and read this documentation through its [MCP server](https://dnotifier.gitbook.io/product-docs/~gitbook/mcp).

# AWS Bedrock integration

`provider` value: `aws_bedrock`

Bedrock is the AWS-native path. You enable models in AWS, give DNotifier credentials + region in the portal, then pass the long Bedrock model id from the SDK.

Ids look noisy on purpose, e.g. `amazon.nova-lite-v1:0` or an Anthropic-on-Bedrock id. Copy them from the portal / AWS console — don't truncate.

## Portal + AWS

1. In AWS: make sure the account/region can call the Bedrock model you want.
2. In DNotifier: **Projects** (the project you want to configure) → **AI Studio** → **Providers** → **AWS Bedrock** → keys or role fields, region, enabled models.
3. Save.

If either side is missing access, `sendAI` fails even when the SDK payload is fine.

## Example

{% tabs %}
{% tab title="JavaScript" %}

```js
await notifier.sendAI({
  senderId: USER_ID,
  provider: "aws_bedrock",
  model: "amazon.nova-lite-v1:0",
  message: {
    messages: [
      { role: "user", content: "Rewrite this error for a non-technical user." },
    ],
  },
  saveHistory: true,
});
```

{% endtab %}

{% tab title="Python" %}

```python
await notifier.send_ai(
    sender_id=user_id,
    provider="aws_bedrock",
    model="amazon.nova-lite-v1:0",
    message={
        "messages": [
            {"role": "user", "content": "Rewrite this error for a non-technical user."}
        ],
    },
    save_history=True,
)
```

{% endtab %}

{% tab title="Dart" %}

```dart
await notifier.sendAI(
  senderId: userId,
  provider: 'aws_bedrock',
  model: 'amazon.nova-lite-v1:0',
  message: {
    'messages': [
      {
        'role': 'user',
        'content': 'Rewrite this error for a non-technical user.',
      },
    ],
  },
  saveHistory: true,
);
```

{% endtab %}
{% endtabs %}

```js
const rewriter = DNotifier.defineAgent({
  name: "rewriter",
  provider: "aws_bedrock",
  model: "amazon.nova-lite-v1:0",
  async run(ctx) {
    return ctx.sendAI({
      message: { text: ctx.input.text },
      saveHistory: false,
    });
  },
});
```

[Overview](https://dnotifier.gitbook.io/product-docs/ai/multi-models.md) · [Azure](https://dnotifier.gitbook.io/product-docs/ai/multi-models/azure-ai-integration.md) if you're on Microsoft instead.
