{"title":"Test your agent internally","slug":"test-your-agent-internally","url":"https://support.storeconnect.com/articles/test-your-agent-internally","url_markdown":"https://support.storeconnect.com/articles/test-your-agent-internally.md","subtitle":null,"summary":"Test your Agentforce agent in the Agent Builder Conversation Preview by setting a store context variable, sending sample questions, reviewing responses, and checking the Plan Tracer for logic issues before activation.","type":"Help_Documentation","video_url":"","keywords":"test your agent, agentforce testing, agent builder, conversation preview, plan tracer, context variables, storeId, ai agent testing, agentforce, activate agent, internal testing","last_modified":"2026-08-21T07:12:35+0000","body_markdown":":::note\nThis topic relates to using AI agents to service your customers, not how to [use agents for building on StoreConnect](use-ai-agents-with-storeconnect).\n:::\n\nThere are a number of ways to test an agent: in the Agent Builder, Testing Center or via the live agent. The procedure below explains testing via the Agent Builder.\n\n## Set the testing context\n\n1.  Open the agent in the Agent Builder. \n\n2.  Open the **Conversation Preview** screen.\n\n    ![Conversation preview for agent testing](https://res.cloudinary.com/hzkr6fi81/image/upload/v1765236275/knowledge/AgentforceAI/Test_your_agent_internally_1-conversation-preview_aiumez.png) \n\n3.  Select the eye icon. This allows you to enter **Context Variables** to test. \n4.  Copy and paste your StoreConnect Store record Id into the **storeId** variable in the list. This will let the agent know which store’s context to use. \n5.  Click **Apply**.\n\n## Test the agent\n\n1.  In the **Conversation Preview** screen, type in some test questions and check the responses. For example, you could start with “Hi, what products do you sell?” You should see a response with the products from your store.\n\n    ![Text agent context and more](https://res.cloudinary.com/hzkr6fi81/image/upload/v1765236276/knowledge/AgentforceAI/Test_your_agent_internally_2-edit-preview-conditions_bpdwov.png) \n\n2.  Ask various questions using varied words and phrasing to see how the agent responds. \n\n3.  Make a note of any odd or incorrect answers. You can see the internal logic of the agent in the Plan Tracer section. You may need to tweak the agent topics to correct any errors.\n\n4.  Check the agent user’s email to see if any errors were returned.\n\n\n## Activate the agent\n\n-   Once the Agent is responding correctly, you can activate the agent.\n\n-   Next, configure your store for the agent."}