Prithvi
Prithvi

Reputation: 1

How to Implement Meta User Data Deletion Callback in Cognigy.AI (JavaScript)?

I’m working on a chatbot built using Cognigy.AI, which is integrated with Facebook Messenger via the Meta for Developers app. Recently, we received a "User Data Deletion Requested" notification from Meta, indicating that a user has requested the deletion of their data.

Upon investigating, we found that in the Meta for Developers app, there is a section for User Data Deletion, which requires either:

A Data Deletion Callback URL Instructions on how users can delete their data We referred to the official Meta documentation: https://developers.facebook.com/docs/development/create-an-app/app-dashboard/data-deletion-callback

The provided example in the documentation is in PHP, but since we are using Cognigy, we need to implement this in JavaScript.

Our Questions:

  1. How can we implement this callback within Cognigy.AI? Is there a way to achieve this using the Code Node or any other built-in Cognigy feature?
  2. Can we use the provided PHP code directly within Cognigy, or do we need to rewrite it in JavaScript?
  3. What should be the correct status_url in the JSON response? Should it be: a)Our main website endpoint? b)The Messenger endpoint created in Cognigy? c)Some other Cognigy-specific endpoint?
  4. Should we be handling this using the Transformers?

Any guidance, code examples, or best practices would be greatly appreciated!

Thanks in advance!:)

Already explained under the details section. Any help from anyone who can solve the issue will be much appreciated.

Upvotes: 0

Views: 21

Answers (0)

Related Questions