Tag: chatbots

Create a lightweight chat client application by using the Foundry SDK (AI-901 Exam Prep)

This post is a part of the AI-901: Microsoft Azure AI Fundamentals Exam Prep Hub. 
This topic falls under these sections:
Implement AI solutions by using Microsoft Foundry (55–60%)
--> Implement generative AI apps and agents by using Foundry
--> Create a lightweight chat client application by using the Foundry SDK


Note that there are 10 practice questions (with answers and explanations) for each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available on the hub below the exam topics section.

Modern generative AI applications often include chat-based interfaces that allow users to interact naturally with AI models. Microsoft Azure AI Foundry provides SDKs (Software Development Kits) that developers can use to build lightweight chat applications that connect to deployed AI models.

For the AI-901 certification exam, candidates should understand the basic concepts behind creating chat client applications using the Foundry SDK and how these applications interact with deployed generative AI models.

This topic falls under the “Implement generative AI apps and agents by using Foundry” section of the AI-901 exam objectives.


What Is a Chat Client Application?

A chat client application is a software application that allows users to communicate with an AI model using conversational prompts and responses.

Users type messages, and the AI model generates replies.


Common Chat Application Examples

Examples include:

  • AI assistants
  • Customer support bots
  • Internal company copilots
  • Study assistants
  • Virtual agents
  • Help desk chatbots

What Is an SDK?

SDK stands for Software Development Kit.

An SDK provides tools and libraries that help developers build applications more easily.

SDKs typically include:

  • APIs
  • Authentication tools
  • Code libraries
  • Documentation
  • Example code

What Is the Foundry SDK?

The Foundry SDK allows developers to connect applications to deployed AI models within Azure AI Foundry.

Developers can use SDKs to:

  • Send prompts
  • Receive AI-generated responses
  • Manage conversations
  • Configure requests
  • Handle authentication

Why Use an SDK?

Using an SDK simplifies development.

Without an SDK, developers would need to manually handle:

  • Network requests
  • Authentication
  • Error handling
  • API formatting

SDKs abstract much of this complexity.


Lightweight Chat Applications

A lightweight chat client is a simple application focused on core chat functionality.

It usually includes:

  • User input field
  • Conversation display
  • AI response generation
  • Basic session management

Basic Chat Workflow

A typical AI chat application workflow includes:

  1. User enters a prompt
  2. Application sends request to deployed model
  3. AI model processes prompt
  4. Model generates response
  5. Application displays response

Connecting to a Deployed Model

Chat applications connect to deployed AI models using:

  • API endpoints
  • Authentication credentials
  • SDK libraries

The deployed model processes incoming prompts.


Authentication

Applications typically authenticate using:

  • API keys
  • Azure credentials
  • Managed identities

Authentication ensures only authorized users and applications can access AI services.


Example Chat Interaction

User

“Explain machine learning in simple terms.”

AI Model

“Machine learning is a type of AI where computers learn patterns from data instead of being explicitly programmed.”


Conversation History

Many chat applications maintain conversation history.

This allows the AI model to remember context during the session.


Example of Context Retention

User

“Who founded Microsoft?”

AI

“Microsoft was founded by Bill Gates and Paul Allen.”

User

“When was it founded?”

Because conversation history is maintained, the AI understands the second question refers to Microsoft.


System Prompts in Chat Applications

Chat applications often include system prompts that guide model behavior.


Example System Prompt

“You are a helpful technical tutor. Explain topics clearly for beginners.”

This influences:

  • Tone
  • Style
  • Behavior
  • Safety

User Prompts

User prompts represent the questions or requests entered during the conversation.


Example User Prompt

“Explain neural networks.”


Model Responses

The deployed AI model generates responses based on:

  • System prompt
  • User prompt
  • Conversation history
  • Model parameters

Model Parameters

Chat applications may configure parameters such as:

  • Temperature
  • Maximum tokens
  • Top-p sampling

Temperature

Temperature controls response creativity.

Low TemperatureHigh Temperature
More focusedMore creative
More predictableMore varied

Maximum Tokens

Maximum tokens limit response length.

Smaller values create shorter responses.


Streaming Responses

Some chat applications support streaming responses.

Streaming displays generated text gradually as the model produces it.

This improves user experience by reducing perceived waiting time.


Error Handling

Applications should handle errors gracefully.

Common issues include:

  • Network failures
  • Invalid credentials
  • Rate limits
  • Timeout errors

Rate Limits

AI services may limit request frequency.

Applications should be designed to handle:

  • Request throttling
  • Retry logic
  • Usage quotas

Responsible AI Considerations

Chat applications should follow Responsible AI principles.

Important considerations include:

  • Content filtering
  • Privacy
  • Safety
  • Bias reduction
  • Transparency

Content Filtering

Content filters help reduce:

  • Harmful responses
  • Offensive content
  • Unsafe outputs

Privacy and Security

Applications should protect:

  • User conversations
  • Authentication credentials
  • Sensitive information

Logging and Monitoring

Organizations may monitor chat applications for:

  • Performance
  • Usage
  • Errors
  • Safety concerns

Azure AI Foundry

Azure AI Foundry provides tools for deploying models and managing generative AI applications.

Developers can:

  • Deploy models
  • Test prompts
  • Monitor applications
  • Manage AI resources

Azure OpenAI Service

Azure OpenAI Service provides access to generative AI models used in chat applications.


High-Level SDK Workflow

A simplified workflow for a lightweight chat application typically includes:

  1. Install SDK
  2. Configure credentials
  3. Connect to deployed model
  4. Send prompts
  5. Receive responses
  6. Display conversation

Example High-Level Pseudocode

connect_to_model()
while True:
user_prompt = get_user_input()
response = send_prompt(user_prompt)
display_response(response)

For AI-901, understanding the overall workflow is more important than memorizing syntax.


Common Real-World Scenarios


Scenario 1: Customer Support Chatbot

Goal

Answer customer questions automatically.

Features

  • Conversational interface
  • Context retention
  • Safe responses

Scenario 2: Internal Knowledge Assistant

Goal

Help employees search company information.

Features

  • Question answering
  • Document summarization
  • Secure access

Scenario 3: Educational Tutor

Goal

Provide interactive learning assistance.

Features

  • Step-by-step explanations
  • Conversational learning
  • Prompt customization

Advantages of Chat-Based AI Applications

Benefits include:

  • Natural user interaction
  • Faster information access
  • Automation of repetitive tasks
  • Improved customer experience
  • Scalability

Challenges and Limitations

Organizations should consider:

  • Hallucinations
  • Incorrect responses
  • Cost management
  • Privacy concerns
  • Latency
  • Prompt injection risks

Hallucinations

Generative AI models may occasionally generate incorrect or fabricated information.

These incorrect outputs are called hallucinations.

Applications should not assume all AI-generated responses are accurate.


Prompt Injection Risks

Malicious users may attempt to manipulate prompts to bypass safety controls.

Applications should implement safeguards against unsafe behavior.


Important AI-901 Exam Tips

For the exam, remember these key points:

  • SDKs simplify application development.
  • Chat clients communicate with deployed AI model endpoints.
  • System prompts define AI behavior.
  • User prompts represent user requests.
  • Conversation history helps maintain context.
  • Temperature controls response randomness.
  • Maximum tokens limit response length.
  • Streaming responses improve user experience.
  • Responsible AI principles apply to chat applications.
  • Authentication secures access to AI services.

Quick Knowledge Check

Question 1

What is the purpose of an SDK?

Answer

To simplify application development using tools and libraries.


Question 2

Why is conversation history important in chat applications?

Answer

It helps maintain context across multiple user interactions.


Question 3

What does temperature control in a generative AI model?

Answer

The creativity and randomness of responses.


Question 4

Why are content filters important?

Answer

They help reduce harmful or unsafe AI-generated outputs.


Practice Exam Questions

Question 1

What is the PRIMARY purpose of a chat client application in generative AI?

A. To physically store servers
B. To allow users to interact conversationally with an AI model
C. To compress database files
D. To manage network hardware


Correct Answer

B. To allow users to interact conversationally with an AI model


Explanation

A chat client application enables users to send prompts and receive AI-generated conversational responses.


Why the Other Answers Are Incorrect

A. To physically store servers

Chat clients are software applications, not physical infrastructure.

C. To compress database files

This is unrelated to chat applications.

D. To manage network hardware

This is unrelated to generative AI chat systems.


Question 2

What does SDK stand for?

A. Secure Data Kernel
B. Software Development Kit
C. System Deployment Key
D. Structured Data Kit


Correct Answer

B. Software Development Kit


Explanation

An SDK provides tools, libraries, and documentation that help developers build applications more efficiently.


Why the Other Answers Are Incorrect

A. Secure Data Kernel

This is not the correct definition.

C. System Deployment Key

This is incorrect terminology.

D. Structured Data Kit

This is not the meaning of SDK.


Question 3

Why do developers commonly use SDKs when building AI applications?

A. SDKs eliminate the need for internet access
B. SDKs simplify communication with AI services and APIs
C. SDKs permanently store all prompts automatically
D. SDKs replace AI models entirely


Correct Answer

B. SDKs simplify communication with AI services and APIs


Explanation

SDKs help developers handle authentication, requests, responses, and integration more easily.


Why the Other Answers Are Incorrect

A. SDKs eliminate the need for internet access

Cloud AI services still require connectivity.

C. SDKs permanently store all prompts automatically

SDKs do not inherently provide permanent storage.

D. SDKs replace AI models entirely

SDKs connect applications to models; they do not replace them.


Question 4

What allows a chat application to remember previous user interactions during a conversation?

A. OCR
B. Conversation history
C. Image classification
D. Regression analysis


Correct Answer

B. Conversation history


Explanation

Conversation history preserves context so the AI can respond appropriately across multiple prompts.


Why the Other Answers Are Incorrect

A. OCR

OCR extracts text from images.

C. Image classification

This categorizes images.

D. Regression analysis

Regression predicts numeric values.


Question 5

Which prompt type defines the AI assistant’s behavior and communication style?

A. User prompt
B. System prompt
C. SQL prompt
D. OCR prompt


Correct Answer

B. System prompt


Explanation

System prompts establish behavior rules, tone, style, and safety guidelines.


Why the Other Answers Are Incorrect

A. User prompt

User prompts contain requests or questions.

C. SQL prompt

SQL is related to databases.

D. OCR prompt

OCR is unrelated to conversational behavior.


Question 6

What is the PRIMARY purpose of authentication in a chat client application?

A. To improve image resolution
B. To ensure only authorized users or applications access AI services
C. To increase response creativity
D. To summarize conversations


Correct Answer

B. To ensure only authorized users or applications access AI services


Explanation

Authentication protects AI resources and controls access to deployed services.


Why the Other Answers Are Incorrect

A. To improve image resolution

Authentication does not affect graphics.

C. To increase response creativity

Temperature settings influence creativity.

D. To summarize conversations

Authentication does not summarize data.


Question 7

Which configuration parameter controls how creative or random a generative AI response will be?

A. Temperature
B. OCR threshold
C. Frame rate
D. Compression ratio


Correct Answer

A. Temperature


Explanation

Temperature controls response randomness and creativity.


Why the Other Answers Are Incorrect

B. OCR threshold

This relates to text extraction.

C. Frame rate

This relates to video processing.

D. Compression ratio

This relates to file compression.


Question 8

What is the benefit of streaming AI responses in a chat application?

A. It improves monitor resolution
B. It allows responses to appear gradually as they are generated
C. It permanently stores all conversations
D. It disables content filtering


Correct Answer

B. It allows responses to appear gradually as they are generated


Explanation

Streaming improves user experience by showing generated text incrementally instead of waiting for the entire response.


Why the Other Answers Are Incorrect

A. It improves monitor resolution

Streaming does not affect displays.

C. It permanently stores all conversations

Streaming does not automatically store data.

D. It disables content filtering

Streaming does not remove safety controls.


Question 9

Which Responsible AI feature helps reduce harmful or offensive AI-generated responses?

A. Content filtering
B. Data compression
C. Video rendering
D. File indexing


Correct Answer

A. Content filtering


Explanation

Content filters help prevent unsafe or inappropriate AI outputs.


Why the Other Answers Are Incorrect

B. Data compression

Compression reduces file size.

C. Video rendering

Rendering creates visual output.

D. File indexing

Indexing organizes data for search.


Question 10

What are hallucinations in generative AI systems?

A. Hardware overheating events
B. Incorrect or fabricated AI-generated information
C. Authentication failures
D. Video processing delays


Correct Answer

B. Incorrect or fabricated AI-generated information


Explanation

Hallucinations occur when AI models generate inaccurate or invented information.


Why the Other Answers Are Incorrect

A. Hardware overheating events

This is unrelated to AI hallucinations.

C. Authentication failures

This is a security issue.

D. Video processing delays

This relates to media performance, not AI accuracy.


Final Thoughts

Creating lightweight chat applications with the Foundry SDK is an important concept for the AI-901 certification exam. Microsoft expects candidates to understand the basic architecture and workflow of AI-powered chat applications, including prompts, endpoints, authentication, conversation management, and Responsible AI considerations.

Azure AI Foundry and Azure OpenAI Service provide powerful tools that allow developers to build conversational AI experiences quickly and efficiently.


Go to the AI-901 Exam Prep Hub main page

AI in Financial Services: From Back Office Automation to Intelligent Decision-Making

Few industries have embraced AI as broadly—or as aggressively—as financial services. Banks, insurers, investment firms, and fintechs operate in data-rich, highly regulated environments where speed, accuracy, and trust matter. AI is increasingly the engine that helps them balance all three.

How AI Is Being Used Today

AI shows up across nearly every function in financial services:

  • Fraud Detection & Risk Monitoring
    Machine learning models analyze transactions in real time to identify suspicious patterns, often catching fraud faster and more accurately than rule-based systems. PayPal utilizes AI-powered systems to detect fraud by comparing transactions with historical patterns, reducing financial losses. This is extremely critical in this time of rampant fraud. Financial Institutions also use AI to analyze real-time working capital and historical data to forecast financial performance and predict trends with greater accuracy.
  • Credit Scoring & Underwriting
    AI evaluates borrower risk using far more signals than traditional credit scores, including transaction behavior and alternative data (where regulations allow). Upstart, an AI-based lending platform, uses non-traditional data to assess creditworthiness, approving loans quickly for customers who might otherwise be denied by conventional models.
  • Customer Service & Virtual Assistants
    Chatbots and voice assistants handle balance inquiries, dispute tracking, loan status updates, and more—freeing human agents for complex cases. Bank of America’s Erica, a virtual assistant, assists customers with account information, bill payments, and personalized financial advice through chat or voice.
  • Algorithmic & Quantitative Trading
    AI models analyze market signals, news sentiment, and historical trends to inform trading strategies and portfolio optimization. Goldman Sachs uses generative AI to optimize trading strategies and forecast market trends, gaining a competitive edge in dynamic markets.
  • Compliance & AML (Anti–Money Laundering)
    AI tools assist in ensuring compliance with regulatory requirements by automating the monitoring transactions and reporting. This reduces the risk if non-compliance and associated penalties. HSBC utilizes AI to process compliance documents efficiently, ensuring adherence to evolving regulations and minimizing manual errors. AI also helps identify money laundering patterns, reduce false positives, and prioritize investigations.
  • Personalized Financial Advice
    Robo-advisors and recommendation engines tailor savings, investment, and retirement strategies to individual customers. Wells Fargo’s predictive banking feature provides personalized prompts about future financial activities leading to improved user engagement.

Tools, Technologies, and Forms of AI

Financial services organizations typically use a layered AI stack:

  • Machine Learning & Deep Learning
    Core to fraud detection, risk modeling, and forecasting.
  • Natural Language Processing (NLP)
    Used to analyze customer communications, earnings reports, regulatory filings, and market news.
  • Generative AI & Large Language Models (LLMs)
    Emerging use cases include advisor copilots, automated report generation, customer communication drafting, and internal knowledge search.
  • AI Platforms & Infrastructure
    Cloud platforms like AWS, Azure, and GCP provide scalable ML services, while many firms also invest in proprietary, on-prem models for sensitive workloads.
  • Decision Intelligence & Optimization Models
    AI combined with rules engines to support pricing, underwriting, and capital allocation decisions.
  • Blockchain and AI Integration
    Blockchain and AI integration will redefine how financial transactions are managed, enhancing security, transparency, and efficiency. Blockchain technology ensures trust and accountability, while AI improves transaction validation and fraud detection. Together, these technologies will streamline cross-border payments, smart contracts, and digital identities, creating a more secure and efficient financial ecosystem.

Benefits Financial Institutions Are Seeing

Organizations that have successfully deployed AI are seeing tangible gains:

  • Reduced Fraud Losses and faster detection
  • Lower Operating Costs through automation of high-volume tasks and improved efficiencies
  • Improved Customer Experience with faster responses and personalization
  • Better Risk Management via more dynamic and data-driven models
  • Increased Revenue through smarter cross-sell, upsell, and pricing strategies

In short, AI helps firms move from reactive decision-making to proactive, predictive operations.

Pitfalls and Challenges

Despite the promise, AI in financial services comes with real risks:

  • Bias and Fairness Concerns
    AI models can unintentionally reinforce historical bias in lending or underwriting decisions, creating regulatory and ethical challenges.
  • Model Explainability
    Regulators and auditors often require clear explanations for decisions—something black-box models struggle to provide.
  • Data Quality and Silos
    Poor data governance leads to unreliable models and failed AI initiatives.
  • Regulatory Risk
    Financial institutions must ensure AI usage aligns with evolving regulations across regions.
  • Overhyped Projects
    Some AI initiatives fail because they chase cutting-edge technology without clear business ownership or measurable outcomes.

Where AI Is Headed in Financial Services

Looking ahead, several trends are emerging:

  • AI as a Copilot, Not a Replacement
    Advisors, underwriters, and analysts will increasingly work alongside AI systems that augment—not replace—human judgment.
  • More Explainable and Governed AI
    Expect increased focus on transparency, auditability, and model governance.
  • Real-Time, Embedded Intelligence
    AI will be embedded directly into workflows—credit decisions, claims processing, and trade execution—rather than sitting in separate tools.
  • Greater Use of Generative AI
    From personalized financial guidance to internal knowledge assistants, GenAI will reshape how employees and customers interact with financial systems.

How Financial Services Companies Can Gain an Advantage

To stay ahead in this fast-changing landscape, organizations should:

  1. Start with High-Impact Use Cases
    Focus on areas like fraud, customer experience, or risk where ROI is clear.
  2. Invest in Data Foundations
    Clean, well-governed data is more valuable than the most advanced model.
  3. Build AI Governance Early
    Fairness, explainability, and compliance should be part of design—not afterthoughts.
  4. Upskill the Workforce
    AI-literate business leaders and domain experts are just as important as data scientists.
  5. Blend Human and Machine Intelligence
    The most successful systems pair AI recommendations with human oversight.

Final Thoughts

AI is no longer experimental in financial services—it’s essential infrastructure. Firms that treat AI as a strategic capability, grounded in strong data practices and responsible governance, will be best positioned to innovate, compete, and earn trust in an increasingly intelligent financial ecosystem.

Are you using AI in the financial services industry? Share how and what you have learned from your journey.

This article is a part of an “AI in …” series that shares information about AI in various industries and business functions. Be on the lookout for future (and past) articles in the series.

Other “AI in …” articles in the series:

AI in the Hospitality Industry: Transforming Guest Experiences and Operations

AI in Gaming: How Artificial Intelligence is Powering Game Production and Player Experience

AI in Healthcare: Transforming Patient Care and Clinical Operations

Thanks for reading and good luck on your data journey!

Salesforce Einstein Bots

What is a Salesforce Einstein Bot?

According to Salesforce a bot is “a computer program which conducts a conversation via auditory or textual methods.”.

So, before we get more into what a bot is let’s first look at the platform they are created on, Salesforce’s Einstein Analytics.

Salesforce’s Einstein Analytics provides impressive mechanisms that assist organizations and their users of the Salesforce platform to connect, communicate & interpret customer needs. By implementing elements of artificial intelligence, data mining and predictive analytics Salesforce users can get deeper insights into their customers data and begin to build an improved base of knowledge related to their business. With an underlying engine tuned for performance and a presentation layer which can display key details or high level metrics on dashboards Einstein Analytics is the next step in reporting on the health of your sales pipeline, exposing opportunities and providing suggestions to help guide you in identifying & visualizing growth which aligns to your business.

Now, back to bots …

Basically, a bot is a means to facilitate communication between humans and computers with either voice or text and subsequently executing an action tied to the input provided. Bots can learn over time to interact with humans by leveraging Salesforce’s Einstein Analytics platform and your data which resides in Salesforce and respond using Natural Language Processing. According to Wikipedia, “Natural language processing (NLP) is a subfield of linguistics, computer science, information engineering, and artificial intelligence concerned with the interactions between computers and human (natural) languages, in particular how to program computers to process and analyze large amounts of natural language data.”

Why are Salesforce Einstein Bots important?

Organizations are creating and implementing bots at an ever-increasing rate. By creating and implementing a bot an organization can begin to get a handle on support cases resolving many of them very quickly and for some scenarios eliminating the need to open one at all.

Of course, a bot isn’t something that is intended to supplant interaction with a human. However, they can be leveraged to provide a decision path for customers and route customer’s requests quickly based on their general needs while providing a positive initial reception which can augment your current customer service model.

Not only can bots improve productivity of agents by freeing them from having to spend time addressing some of the simpler, frequent requests but can now allow them to focus on more time consuming, complex issues.

Bots in a sense can also be considered another channel for content. However, instead of thinking of new ways to formulate questions from scratch organizations should try to marry current content to bot questions. Reusing content is good but it should rely on content that is based on existing knowledge. This reuse of inhouse documentation & materials will ultimately bring development costs down leading toward a more uniform experience with a higher degree of excellence for the interaction.

How to configure the platform for Salesforce Einstein Bots?

Before you jump in and start creating bots you would be best served by allocating time to plan your bot and consider how it will interact with your customers.

Collaborating and soliciting feedback from agents regarding the issues they experience with customers that are potential areas a bot could address is a good start.

Think about the bot’s persona, what its name should be and how you would like it to convey & reiterate a consistent image of the company overall.

Decisions related to which channels to use, ways in which customers can enter their questions, which licenses are required, which profile to use, whether to provide a menu, what is not in scope for the bot, … etc. should all be worked out in advance of bot development.

At what point does a human need to take over from the bot’s interaction with the customer, if at all?

In Salesforce you will need a Service Cloud license and a Chat or Messaging license. Once that is obtained you will need to turn on Lightning Experience. There is a guided setup flow for Chat you will need to run through. If your organization has Knowledge articles you want to make available to customers through the bot that will need to be enabled also. In your Salesforce Org if you go to Setup and type Einstein Bots in the quick select area it will return Einstein Bots you can click on. Then under Settings there is a toggle to enable Einstein Bots.

When ready make an Embedded Chat button available on your published Salesforce site or community site for your customers to interact with. A Salesforce community site is preferred.

Check out the https://trailhead.salesforce.com/en/home free training to find out more about how to create bots within Salesforce.

Things to consider when maintaining Salesforce Einstein Bots.

Salesforce documentation indicates that the following items also be considered when planning bot creation:

  • Chat and Messaging licenses support different channels (such as SMS or Facebook Messenger) and might have different requirements.
  • Each org is provided 25 Einstein Bots conversations per month for each user with an active subscription.
  • To make full use of the Einstein Bots Performance page, obtain the Service Analytics App.