DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Information and Document Chatbot

Information and Document Chatbot

Learn more about information and document chatbots.

sachin chaudhary user avatar by
sachin chaudhary
·
Apr. 03, 19 · Tutorial
Like (6)
Save
Tweet
Share
5.92K Views

Join the DZone community and get the full member experience.

Join For Free

A bot is an app or some software that does a task automatically. Users interact in a conversational way using text or speech. It may be a simple question-and-answer bot or a complex bot that allows people to interact with services in an intelligent manner using pattern matching and artificial intelligence techniques.

For developing a bot, we can use Azure Bot Service or the Bot Framework SDK for .NET. Bot Framework SDK is a powerful framework for constructing bots that can handle both free-form interactions and more guided conversations. It is easy to use and leverages C# to provide a familiar way for .NET developers to write bots.

Information and document chatbots could answer different questions defined in QNA maker and provide different types of documents stored in data sources such as azure blob storage required by the user.

For developing an intelligent bot, our first step is to make our bot intelligent enough to understand the user text or speech. For this purpose, Language Understanding (LUIS) is used. LUIS understands the user speech and extracts the intents and entities from it. Intents are how LUIS determines what a user wants to do. Put simply, it finds out the intention of the user. 

An entity is used like a variable in algebra; it is used to capture and pass important information.

Image title

Results from LUIS and QNA maker comes in the JSON format; we need to extract reliable information from it. For this purpose, we need to write a program in C# code, which extracts that information.

The following is the sample C# code to retrieve intents and entities from JSON.

Note: We need to write C# code according to our JSON format, different JSON formats generate different C# code.

In this bot, we use intents and entities to fetch information and required documents from QNA maker and blob storage (you can use any other data sources such as cosmos DB).

Azure Blob storage is Microsoft's object storage solution for the cloud. Blob storage is used for storing huge amounts of unstructured data. Unstructured data is data that does not adhere to a particular data model or definition, such as text or binary data.

For searching documents, we are using Azure Search (it is a component of the Microsoft Azure Cloud Platform providing indexing and querying capabilities for data uploaded to and download from Microsoft servers). Intents and entities are passed to Azure Search, and it will start searching documents in the provided data sources (in this case Azure blob storage). Azure Search builds a great enterprise search solution that reduces complexity with a fully-managed service and gets up and running quickly.

Note: Azure Search is not used to fetch information from QNA maker; we need to write separate C# code to fetch information from QNA maker.

The following is an example of an information and document chatbot.

As we can see, the user asked for some projects in MVC, so the bot returned some information about MVC architecture style stored in QNA maker and documents from Azure blob storage using Azure Search.

Document azure Chatbot Data (computing)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Fraud Detection With Apache Kafka, KSQL, and Apache Flink
  • Select ChatGPT From SQL? You Bet!
  • Express Hibernate Queries as Type-Safe Java Streams
  • How to Secure Your CI/CD Pipeline

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: