Create your first agent

Create an agent, add a knowledge source, write one procedure, test it in the Playground and publish it to your website in about half an hour.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

This guide takes you from a new workspace to a working agent on your website. You will create the agent, give it knowledge, write one procedure, test it and publish. Allow about half an hour, mostly spent waiting for a source to train.

You need an Askocto account. If you do not have one, sign up first.

Create the agent

  1. Sign in at app.askocto.co and open Agents.
  2. Select New agent.
  3. Enter a Name, for example Store support.
  4. Choose the Type: Support agent, Sales agent or Guidance agent. Pick Support agent for this guide.
  5. Select Create.

You should see the agent open on Build with the status draft. A draft is private to your team until you publish it.

Add a source

The agent answers from your sources. Start with your help center or website.

  1. Open Build > Sources and select Add source.
  2. Choose Website and paste the URL of your help center, or a sitemap URL.
  3. Select Add.

The source appears with the status Queued, then Training, then Ready. Wait until it is Ready. Details on every source type are in data sources.

Write a procedure

A procedure tells the agent how to handle one type of request. Pick the question your team answers most.

  1. Open Build > Procedures and select New procedure.
  2. Name it, for example Refund request.
  3. Write the steps in plain language:
1. Look up the order.
2. If the order is under 30 days old, offer a refund.
3. Otherwise offer store credit, and escalate if the customer objects.
  1. Select Save.

Step 1 refers to an action you have not connected yet. For now the agent will ask the customer for the order number. See procedures for how to write good ones.

Test in the Playground

  1. Open Test > Playground.
  2. Ask a question your source covers, then ask for a refund.
  3. Check which sources and which procedure the agent used, shown beside each answer.

If an answer is wrong, fix the source or the procedure and ask again. See the Playground.

Publish and embed

  1. Open Settings > Versions and select Publish. Add the note "First version".
  2. Open Channels and select Website widget.
  3. Copy the embed script and paste it before the closing </body> tag of your site:
<script src="https://cdn.askocto.co/embed.js" data-agent-id="agt_123" defer></script>

Replace agt_123 with your agent's ID. Reload your site and the chat bubble appears.

Tip: Publish to a staging page first if you have one. Open the widget, ask a few real questions and then roll it out.

Next steps

  • Add more sources and procedures for your common requests.
  • Connect an action so the agent can look up real data.
  • Read Best practices.

Something unclear or missing? Tell us and we will fix the page.