Skip to content

Build Your Digital AI Agent in Minutes

In this tutorial, you will learn how to create a simple digital AI Agent from scratch that greets you by name. Then you will test this agent using built-in Cognigy testing tools.

Create a Project

Create a project that involves building an AI Agent:

  1. Open the Cognigy.AI interface.
  2. In the upper-left corner, click + Create Project.
  3. On the Basic settings for your Project page, specify a name for your agent in the Project Name field, for example, AI Agent.
  4. Click Create Empty Project.

Once the project creation is complete, you can proceed with building the AI Agent.

Build a Chat Agent

To build a chat agent, follow these steps:

  1. In the left-side menu, navigate to Build > Flows.
  2. Create a new Flow by clicking + New Flow in the upper-right corner.
  3. In the New Flow window, do the following:
    3.1. Add a unique name, for example, Getting Started.
    3.2. Add a relevant description, for example, Getting Started Guide for chat agent.
    3.3. Click Create.
  4. In the Flow editor, create a new Node by clicking + and selecting a Question Node from the list.
  5. Left-click the Question Node to open the Node editor.
  6. In the Question Node editor, set up the following parameters:
    5.1. From the Question Type list, select Text.
    5.2. In the Text field, enter the following sentences: Hello! What's your name?
    5.3. Click Save Node.
  7. Below the Question Node, add a Say Node.
  8. Left-click the Say Node to open the Node editor.
  9. In the Say Node editor, go to the Text field.
  10. In the Text field, enter Hello and click token.
  11. From the Tokens list, select Answer. This token lets reuse the user's answer in the AI Agent's response.
  12. Click Save Node.

Once your AI Agent is created, you can test it via the Interaction Panel.

Test your Chat Agent

To test your AI Agent, follow these steps:

  1. In the existing Flow, open the Interaction Panel by clicking interaction-panel Chat with your Agent in the upper-right corner of the page. The Interaction panel appears on the right side of the Flow Editor.
  2. Initiate a conversation by entering Hello in the Text Message field and press Enter.
  3. Answer the AI Agent's question by entering your name. The AI Agent will greet you by your name.

Now you can deploy the agent using the Webchat v3 Endpoint, and see how conversations look on the production environment through Demo Webchat.

What's Next?