I’m currently using the OpenAI API to build a chatbot application, and I’d like to capture additional context about the users interacting with it. Specifically, I’m interested in:
- User’s IP Address – To understand the geographic location or for analytics purposes.
- Referrer URL – To identify the source URL that led users to interact with the chatbot.
I couldn’t find anything in the OpenAI API documentation about obtaining this information directly. Is there any way to get these details through the API, or would I need to implement a separate mechanism (e.g., on my frontend or server)?
Any advice or best practices for capturing this kind of data securely and in compliance with privacy laws like GDPR would also be appreciated.
Thanks in advance!