ambitious-vr-9887
06/02/2023, 7:10 PMambitious-vr-9887
06/05/2023, 1:54 PMacceptable-gold-88171
06/05/2023, 2:06 PMconsole.log(`:envelope::envelope::envelope: message from userId ${event.userId}:
user : ${event.payload.text}
bot : ${outgoingEvent.payload.text}
:speech_balloon::speech_balloon::speech_balloon:`)
You can call axios in here, so you could send this to any DB of yours. Even something like GA4 or Mixpanel works! If you output multiple messages for a single user message, you might want to split this in two (After Incoming Message and Before Outgoing Message) though.
Let me know if you need more info on doing thisambitious-vr-9887
06/05/2023, 2:10 PMambitious-vr-9887
06/05/2023, 2:11 PMambitious-vr-9887
06/05/2023, 2:11 PMacceptable-gold-88171
06/05/2023, 2:20 PMambitious-vr-9887
06/05/2023, 4:27 PMambitious-vr-9887
06/09/2023, 10:15 PMambitious-vr-9887
06/09/2023, 10:16 PMacceptable-gold-88171
06/12/2023, 2:21 PMearly-train-33247
06/12/2023, 2:44 PMearly-train-33247
06/12/2023, 2:46 PMearly-train-33247
06/12/2023, 2:47 PMacceptable-gold-88171
06/12/2023, 2:55 PMambitious-vr-9887
06/12/2023, 3:00 PMearly-train-33247
06/12/2023, 3:00 PMsalmon-art-82621
06/21/2023, 8:27 PMearly-train-33247
06/21/2023, 9:38 PMnpm run dev
. Then the app will open at localhost:5173, and you will be able to list the conversations!early-train-33247
06/21/2023, 9:38 PMsalmon-art-82621
06/21/2023, 9:41 PMsalmon-art-82621
06/21/2023, 10:18 PMearly-train-33247
06/21/2023, 10:43 PMearly-train-33247
06/21/2023, 10:43 PMsalmon-art-82621
06/22/2023, 5:41 AM