Creating a Rule

Use rules to build your agents constraints

To create a rule, navigate to the Rules section of the ResponseCX dashboard and click the Add New Rule button.

This will create a new rule with the following fields, for example:

  • agent: ReSponse
  • type: System Rule
  • name: Always Response Politely
  • description - Always respond politely to the customer

Click Add Rule to create the rule.

Creating a Rule via the SDK

const rule = await stateset.rules.create({
  agent: "ReSponse",
  type: "System Rule",
  name: "Always Response Politely",
});

Updating a Rule

To update a rule, click on the Update button in the rule row in the Rules section of the ResponseCX dashboard.

This will open the rule editor, where you can update the name, description or delete the rule.

Updating a Rule via the SDK

const updated = await stateset.rules.update({
  id: rule.id,
  name: "Always Response Politely",
});

Rules Overview

Once your rules have been created, ReSponse will load these into the system and apply them to the agent’s responses.

These will be initialized as when processing requests from the customer.

For more information on how to use the rules, please reach out at response@stateset.com