Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have integrated Chatbase into a voice application, when the user says a certain "Intent", it will be send and logged in Chatbase.

However, while the messages are sending fine (they are returning 200 in the send callback) - there appears to be nothing in the Chatbase console. I have read saying things can take 6 hours - it has now been 24 hours and there is still nothing!

Here is my implementation:

function sendChatbaseMessage(ad, intent) {
Chatbase.setApiKey(process.env.MY_CHATBASE_ID)
   .setPlatform('Alexa') 
   .setVersion('1.0') 
   .setAsTypeUser()
   .newMessage()
   .setTimestamp(Date.now().toString())
   .setMessage(`STATE: ${ad.Session[SessionVars.SkillState]}`)
   .setUserId(ad.Util.getUserId())
   .setIntent(intent)
   .setAsHandled()
   .setCustomSessionId(ad.Util.getSessionId())
   .send()
   .then((data) => {
     console.log("Chatbase message sent: ", data.getCreateResponse())
   })
   .catch((err) => {
     console.log("Error sending chatbase message", prettifyJSON(err.stack))
   })
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.8k views
Welcome To Ask or Share your Answers For Others

1 Answer

The information I was logging in my app was showing the the "cohorts" section of the web GUI.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...