Code Monkey home page Code Monkey logo

go-chatbase's Introduction

go-chatbase's People

Contributors

m90 avatar paulannekov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

paulannekov

go-chatbase's Issues

[New Feature] Include the session_id option

This is a suggestion to include the session_id option

session_id: string, set for user and bot messages; used to define your own custom sessions for Session Flow report and daily session metrics

HTTP Method: POST
Request Body (JSON):
{
  api_key:           string, <required> the Chatbase ID of the bot
  type:              string, <required> valid values "user" or "agent" (aka
                     your bot) message
  user_id:           string, <required> the ID of the end-user
  time_stamp:        int,    <required> milliseconds since the UNIX epoch, used to sequence
                     messages. (must be within previous 30 days)
  platform:          string, <required> valid values "Facebook", "SMS", "Web", "Android",
                     "iOS", "Actions", "Alexa", "Cortana", "Kik", "Skype", "Twitter", "Viber",
                     "Telegram", "Slack", "WhatsApp", "WeChat", "Line", "Kakao" or a custom name
                     like "Workplace" or "OurPlatform"
  message:           string, <optional> the raw message body regardless of type for example
                     a typed-in or a tapped button or tapped image; 1,200 characters max
  intent:            string, <optional> set for user messages only; if not set usage metrics
                     will not be shown per intent; do not set if it is a generic catch all intent,
                     like default fallback, so that clusters of similar messages can be reported
  not_handled:       bool,   <optional> set for user messages only;
                     indicates that the bot was not able to handle the message because it was
                     not understood (e.g. no intent for "Start over"), or it was understood (e.g.
                     has intent for "Order drink") but not supported; if not set then these high
                     churn issues are not shown across reports; set for generic catch all intents,
                     like default fallback
  version:           string, <optional> set for user and bot messages; used to track
                     versions of your code or to track A/B tests
  session_id:        string, <optional> set for user and bot messages; used to define your own
                     custom sessions for Session Flow report and daily session metrics
}

Response:
{
  message_id:  <string>,
  status:      <int> 200 || 400
}`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.