🖥️
carter-js v1
  • carter-js
  • 💬Conversation
    • Say
    • Interactions
    • Downvoting
    • Audio Links
    • History
  • 🎱Skills
    • Basics
  • Other Features
    • Response Times
  • More
    • Changelog
Powered by GitBook
On this page
  • What is an interaction?
  • What does it look like?
  1. Conversation

Interactions

Carter Interactions are at the heart of carter-js

PreviousSayNextDownvoting

Last updated 2 years ago

What is an interaction?

An interaction is an object returned whenever you send a message to your Carter agent. It contains the data CarterAPI returns as well some some extra spice courtesy of carter-js.

What does it look like?

CarterInteraction {
  data: CarterData
  ok: Boolean
  statusCode: Number
  statusMessage: String
  payload: CarterPayload
  triggeredSkills: CarterSkillInstance[]
  executedSkills: CarterSkillInstance[]
}
  • data: This is the data returned by CarterAPI. To avoid replicating information, you can find an explanation of this data . In the event of an invalid response from the Carter endpoint, this property will be undefined.

  • ok: Returns true is the response code is 2xx. More details .

  • statusCode: An informational message relating to the status code.

  • payload: The payload object which was sent to Carter.

  • triggeredSkills: An array of that were triggered by Carter, but who's actions were not executed.

  • executedSkills: An array of that were triggered by Carter and who's actions were automatically executed on detection.

💬
here
here
skills
skills