Skip to content

Commit a261bb1

Browse files
committed
✨ Introduce new Bedrock AI components
- Added new Guardrails component for Bedrock AI. - Updated existing Bedrock components for consistency. - Enhanced overall structure and organization of AI blog section. Generated by Copilot
1 parent a8e531f commit a261bb1

File tree

5 files changed

+24
-43
lines changed

5 files changed

+24
-43
lines changed

TestArena/Blog/AI/Bedrock/Advanced.razor

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,9 @@ private string FormatJsonString(string input)
177177
</p>
178178
</Section>
179179

180+
<CalloutBox Type="info" Title="🚀 Next in the Series">
181+
<p>Now that you've mastered production authentication, explore multi-turn conversations. Check out <a href="/blog/ai/bedrock/converse">AWS Bedrock with .NET: Conversational AI Converse API</a> to build chatbots that remember context.</p>
182+
</CalloutBox>
183+
180184
<EndNotes RepositoryLink="https://github.com/ajaysskumar/ai-playground" />
181185
</BlogContainer>

TestArena/Blog/AI/Bedrock/BedrockWithConverse.razor

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,7 @@
2828
</CalloutBox>
2929
</Section>
3030

31-
<Section Heading="What is the AWS Bedrock Converse API and Why Use It?" Level="4">
32-
<p>
33-
As generative AI becomes more integrated into business workflows, the need for natural, multi-turn conversations with AI models is growing. AWS Bedrock's <b>Converse API</b> is designed to simplify these interactions, enabling developers to build chatbots, virtual agents, and assistants that can maintain context and handle complex dialogues.
34-
</p>
35-
<p>
36-
Unlike the traditional <b>Invoke API</b>, which is optimized for single-turn prompts, the Converse API is purpose-built for multi-turn, stateful conversations. This makes it ideal for scenarios where the AI needs to remember previous exchanges and provide contextually relevant responses.
37-
</p>
38-
</Section>
39-
40-
<Section Heading="What is the AWS Bedrock Converse API?" Level="4">
31+
<Section Heading="What is the AWS Bedrock Converse API?" Level="4">
4132
<p>
4233
The <b>Converse API</b> is AWS Bedrock’s answer to the growing demand for natural, multi-turn, context-aware conversations with generative AI models. As businesses and developers began integrating AI into customer support, virtual assistants, and workflow automation, it became clear that single-turn, stateless APIs (like the original <b>Invoke API</b>) were not enough. Users expect AI to remember context, follow up on previous questions, and provide a seamless, human-like experience.
4334
</p>
@@ -51,18 +42,7 @@
5142
</CalloutBox>
5243
</Section>
5344

54-
<Section Heading="Why: The Need for the Converse API" Level="4">
55-
<ul>
56-
<li><b>Context Retention:</b> Converse API allows the model to maintain conversation history, enabling more natural and coherent interactions.</li>
57-
<li><b>Multi-Turn Dialogues:</b> Essential for customer support, virtual assistants, and any use case where back-and-forth is required.</li>
58-
<li><b>Seamless Integration:</b> The API is designed to work smoothly with AWS SDKs, making it easy to add to your .NET applications.</li>
59-
</ul>
60-
<p>
61-
In short, if your application needs to "remember" what was said earlier and respond accordingly, the Converse API is the right tool.
62-
</p>
63-
</Section>
64-
65-
<Section Heading="Why Did AWS Create the Converse API?" Level="4">
45+
<Section Heading="Why Did AWS Create the Converse API?" Level="4">
6646
<ul>
6747
<li><b>Context Retention:</b> Real conversations require memory. Converse API lets you pass the full message history, so the model can reference earlier turns and maintain continuity.</li>
6848
<li><b>Multi-Turn Dialogues:</b> Many business scenarios (support, sales, onboarding) require back-and-forth exchanges, not just one-off answers.</li>
@@ -74,16 +54,7 @@
7454
</p>
7555
</Section>
7656

77-
<Section Heading="When to Use Converse API: Use Case Scenarios" Level="4">
78-
<ul>
79-
<li>AI-powered customer support agents that handle multi-step troubleshooting.</li>
80-
<li>Virtual assistants that help users complete tasks over several messages.</li>
81-
<li>Educational bots that guide users through learning modules.</li>
82-
<li>Any scenario where context and continuity are critical for user experience.</li>
83-
</ul>
84-
</Section>
85-
86-
<Section Heading="When and Where to Use the Converse API" Level="4">
57+
<Section Heading="When and Where to Use the Converse API" Level="4">
8758
<ul>
8859
<li><b>Customer Support:</b> Multi-step troubleshooting, order tracking, and escalation flows.</li>
8960
<li><b>Virtual Assistants:</b> Scheduling, reminders, and task management that require context.</li>
@@ -97,17 +68,7 @@
9768
</CalloutBox>
9869
</Section>
9970

100-
<Section Heading="How Does Converse API Compare to Invoke API?" Level="4">
101-
<ul>
102-
<li><b>Invoke API:</b> Best for single-turn, stateless prompts. Each request is independent, and the model does not retain any memory of previous interactions.</li>
103-
<li><b>Converse API:</b> Designed for multi-turn, stateful conversations. The model receives the full conversation history and can generate responses that reference earlier messages.</li>
104-
</ul>
105-
<p>
106-
If you need chat-like, context-aware interactions, use Converse. For simple, one-off completions, use Invoke.
107-
</p>
108-
</Section>
109-
110-
<Section Heading="Converse API vs. Invoke API: Technical and Practical Differences" Level="4">
71+
<Section Heading="Converse API vs. Invoke API: Technical and Practical Differences" Level="4">
11172
<ul>
11273
<li><b>Invoke API:</b> Stateless. Each request is a single prompt/response. No memory of previous turns. Simpler, but limited for conversations.</li>
11374
<li><b>Converse API:</b> Stateful. You send the full conversation history (as a list of messages). The model can reference, summarize, or clarify based on prior turns.</li>
@@ -292,5 +253,9 @@ public class BedrockCustomerSupportService
292253
</ul>
293254
</Section>
294255

256+
<CalloutBox Type="info" Title="🚀 Next in the Series">
257+
<p>Converse API is powerful for conversations, but what if you need guaranteed structured output? Check out <a href="/blog/ai/bedrock/converse-tools">AWS Bedrock with .NET: Converse API with Tools</a> to enforce schemas and extract data reliably.</p>
258+
</CalloutBox>
259+
295260
<EndNotes RepositoryLink="https://github.com/ajaysskumar/ai-playground/blob/main/AwsBedrockExamples/Services/BedrockCustomerSupportService.cs" />
296261
</BlogContainer>

TestArena/Blog/AI/Bedrock/BedrockWithConverseTools.razor

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,5 +320,9 @@ Console.WriteLine(movieJson);
320320
</ul>
321321
</Section>
322322

323+
<CalloutBox Type="info" Title="🚀 Next in the Series">
324+
<p>Tools give you structure, but what about safety? Explore how AWS Bedrock protects your application. Check out <a href="/blog/ai/bedrock/guardrails">AWS Bedrock with .NET: Guardrails for Safe AI Applications</a> to block harmful content and enforce boundaries.</p>
325+
</CalloutBox>
326+
323327
<EndNotes RepositoryLink="https://github.com/ajaysskumar/ai-playground/blob/main/AwsBedrockExamples/Services/BedrockWithConverseToolsService.cs" />
324328
</BlogContainer>

TestArena/Blog/AI/Bedrock/Guardrails/Index.razor renamed to TestArena/Blog/AI/Bedrock/Guardrails.razor

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,10 @@ Exiting interactive mode.
497497
</Section>
498498
</Section>
499499

500+
<CalloutBox Type="info" Title="🎓 Series Complete">
501+
<p>Congratulations! You've mastered the complete AWS Bedrock lifecycle in .NET: from basics → production auth → conversational AI → structured outputs → safety guardrails. Ready to build production GenAI applications? <a href="https://github.com/ajaysskumar/ai-playground" target="_blank">Explore the full code examples on GitHub.</a></p>
502+
</CalloutBox>
503+
500504
<EndNotes RepositoryLink="https://github.com/ajaysskumar/ai-playground"></EndNotes>
501505

502506
</BlogContainer>

TestArena/Blog/AI/Bedrock/Index.razor

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,5 +214,9 @@ Console.WriteLine(movieJson);
214214
</ul>
215215
</Section>
216216

217+
<CalloutBox Type="info" Title="🚀 Next in the Series">
218+
<p>Ready to take it further? Check out <a href="/blog/ai/bedrock/advanced">AWS Bedrock with .NET: Advanced Integration & Production Setup</a> to learn about IAM authentication, EC2 instance roles, and production deployment strategies.</p>
219+
</CalloutBox>
220+
217221
<EndNotes RepositoryLink="https://github.com/ajaysskumar/ai-playground" />
218222
</BlogContainer>

0 commit comments

Comments
 (0)