Azure Service Bus

Working with Azure Service Bus API integration

Overview

This manual is divided into several sections, each focusing on a specific aspect of the Azure Service Bus-Kognitos integration.

Introduction

The integration of Azure Service Bus with Kognitos offers a seamless and efficient way to manage messaging between applications and services. This integration allows users to send and receive messages to and from Azure Service Bus queues using Kognitos' natural language processing capabilities. This section provides an overview of the Azure Service Bus-Kognitos integration and outlines the prerequisites for using Azure Service Bus on Kognitos.

Prerequisites for Using Kognitos with Azure Service Bus

Before you can start using Kognitos to interact with Azure Service Bus, there are several prerequisites that need to be met:

  1. Azure Subscription: You need to have an active Azure subscription. If you do not have one, you can sign up for an Azure free account to get started.
  2. Azure Service Bus Namespace: Ensure that you have an Azure Service Bus namespace created. This namespace will contain your queues and topics.
  3. Queue Creation: Create the necessary queues within your Azure Service Bus namespace where messages will be sent and received.
  4. Connection String: Obtain the connection string for your Azure Service Bus namespace. This can be found in the Azure portal under your Service Bus namespace settings.

Once these prerequisites are met, you are ready to start leveraging the power of Kognitos to enhance your Azure Service Bus experience, making it more accessible, efficient, and customizable.


Setting Up Azure Service Bus Connection

Connecting to Azure Service Bus

To interact with Azure Service Bus using Kognitos, establishing a secure connection to your Azure Service Bus namespace is the first critical step. This section outlines the credentials required for this connection and provides a detailed, step-by-step guide to connect successfully.

Required Credentials

To connect to Azure Service Bus, you will need the following credentials:

  1. Namespace Connection String: The connection string for your Azure Service Bus namespace. This string is unique to your namespace and can be found in the Azure portal.
  2. Queue Name: The name of the queue within your Azure Service Bus namespace where messages will be sent or received.

Step-by-Step Connection Process

  1. Gather Credentials: Ensure you have the required credentials: Service Namespace, Access Key Name and Access Key Value.
  2. Navigate to the Departments tab of Kognitos and search for Microsoft Outlook
  3. Click on + New Book button on the right of the Departments page
  4. Search for Azure Service Bus and then click on the book which is shown
  1. Add in the credentials when you are prompted
  1. Connection Established: Once the connection is successfully established, you are ready to perform various operations on Azure Service Bus. You can now send messages, receive messages, and manage queues.

Sending Messages to Azure Service Bus

Sending Messages

Sending messages to an Azure Service Bus queue is a fundamental operation when integrating Azure Service Bus with Kognitos. This section covers how to send messages to a specified queue.

Action Description: Sends a message to an Azure Service Bus queue.

Required Concepts:

  • Message (string): The message to be sent.
  • Queue name (string): The name of the Azure Service Bus queue the message will be sent to.

Language Example:

the message is "Hello, World!"
send the message to azure service bus with
    the queue name is "myqueue"

This command sends the message "Hello, World!" to the specified queue "myqueue".


Receiving Messages from Azure Service Bus

Receiving Messages

Receiving messages from an Azure Service Bus queue is another core functionality when integrating Azure Service Bus with Kognitos. This section covers how to receive the latest message from a specified queue.

Action Description: Receives the latest message from an Azure Service Bus queue.

Required Concepts:

  • Queue name (string): The name of the Azure Service Bus queue from which to receive the message.

Output Concepts:

  • Message (string): The latest message received from the specified Azure Service Bus queue.

Language Example:

receive a message from azure service bus with
    the queue name is "myqueue"
the message

This command receives the latest message from the specified queue "myqueue" and outputs the message.


Glossary of Terms

  • Azure Service Bus: A fully managed enterprise message broker with message queues and publish-subscribe topics.
  • Queue: A messaging entity in Azure Service Bus that stores messages until they are received and processed.
  • Namespace: A container for all messaging components (queues, topics) in Azure Service Bus.
  • Connection String: A string that provides the necessary information to connect to an Azure Service Bus namespace.

By following these guidelines, you can effectively manage Azure Service Bus operations in Kognitos, from sending and receiving messages to managing queues as needed.