{"section":"tutorials","requestedLocale":"en","requestedSlug":"assigning-and-testing-agents-in-agent-builder","locale":"en","slug":"assigning-and-testing-agents-in-agent-builder","path":"docs/en/tutorials/vtex-cx-platform/agent-builder/assigning-and-testing-agents-in-agent-builder.md","branch":"main","content":"The **My agents** section allows users to assign agents to the team and test them.\n\nSome official agents require credentials. See the full list in the article [Official agents from VTEX CX Platform and their credentials](/en/docs/tutorials/official-agents-from-vtex-cx-platform).\n\n> ℹ️ To create custom agents, use the VTEX CX Platform (Weni) CLI. See the [documentation](https://developers.vtex.com/docs/guides/using-the-weni-by-vtex-cli) for instructions.\n\nThis article is divided in two parts:\n\n- [Assigning an agent to the team](#how-to-assign-agents)\n- [Testing an agent](#how-to-test-agents)\n\n## Assigning an agent to the team\n\n1. In the side menu, click **Agent Builder**.\n2. Then, click **Agents**.\n3. In the top toolbar, click <i class=\"fas fa-plus\"></i>`Assign agents`.\n4. In the Agents Gallery, select **Official agents** or **Custom agents**. You can select from the listed agents or use the search field to search for a specific agent.\n5. After choosing your agent, click `Assign to the team`.\n\n> ⚠️ If the agent requires a credential, complete the required fields and then click `Assign`.\n\n## Testing an agent\n\nTo test an agent, click `Preview`.\n\nOn this screen, you can:\n\n- Start a conversation using the dialog box.\n- Send an audio message by clicking the microphone icon.\n- Send an image by clicking the plus icon <i class=\"fas fa-plus\"></i>, then click `Photos`.\n\nIn **Visual flow**, you can see the agents that are being triggered based on the questions asked.\n\nIn **Logs**, a detailed history of events processed by artificial intelligence (AI) is recorded. Using this information, you can identify how the AI works and diagnose issues, improving its performance. Click `Filter logs` to search for keywords or search among the following categories:\n\n| Category                        | Step description                                                                                         |\n| ------------------------------- | :------------------------------------------------------------------------------------------------------- |\n| Applying security rules         | Applies security controls and restrictions.                                                              |\n| Knowledge                       | Searches for information in the agent's knowledge base.                                                  |\n| Assigning the task to the agent | Triggers the agent with tasks.                                                                           |\n| Forwarding to the manager       | Forwards the user's messages to the manager — the main agent for writing the final response to the user. |\n| Sending final response          | Sends the final response to the user.                                                                    |\n| Sending response to the manager | Forwards information to the manager — the main agent for interacting with the user.                      |\n| Thinking                        | Evaluates the next steps.                                                                                |\n| Tool                            | Triggers the tool used by the agent to interact with other systems.                                      |\n\nTo clear the conversation, click the <i class=\"fas fa-ellipsis-v\"></i> menu next to **Agent preview** and select `Clear conversations`."}