Responses

Ensure that your response contains enough information to be useful. This includes gaps for unhandled responses such as unexpected error codes.

Check your response condition logic. For example, if your API Fulfillment response variable is a string, ensure that you use the Equals/Not Equals operators, or Is Empty/Is Not Empty for the arrays.

Use these recommendations when defining the response:

  • Consider the audience for the skill. Is the user in an office, warehouse, or in transit?
  • Consider the most useful response. Should you navigate to a page with the answer or provide a message response?
  • If the final response contains a list of enumerated values, consider using a table response.

For example, employees must receive approval for time off from their respective department supervisors. Each department requires a unique response. The Sales team must be approved by Jane Smith and the Accounting team must be approved by David Wilson.

These responses demonstrate an effective and inefficient response:

  • Effective response: To approve time off requests for the Sales Team, please contact jsmith@infor.com.
  • Inefficient response: To approve time off requests for the Accounting Team, please contact your supervisor.

Remember to include multiple responses for handing different types of errors. This can help the user understand the reason for the error.