-
Notifications
You must be signed in to change notification settings - Fork 365
Description
Hi OpenAI team! 👋
First of all, thank you for creating such an incredible tool for developers. The Apps SDK opens up amazing possibilities for building custom experiences.
Feature Request
I'd like to suggest exposing user identification and non-sensitive profile data through the SDK to enable better personalized experiences without requiring additional authentication in our apps.
Proposed Implementation
1. User Identifier
Expose a unique user identifier via:
window.openai.user.uidThis would allow developers to:
- Store and retrieve user preferences remotely
- Maintain personalized settings across sessions
- Provide continuity in the user experience
- Avoid implementing separate authentication systems
2. Non-Sensitive User Data (Optional)
Additionally, exposing other non-sensitive user information could unlock valuable features:
window.openai.user.subscription.plan // e.g., "free", "plus", "pro"
window.openai.user.usage.tokens // Token consumption data
window.openai.user.usage.period // e.g., last 6 months statsUse Cases
With this data, developers could:
- Display the user's current token usage and limits
- Show subscription tier benefits within the app
- Provide usage analytics and insights
- Tailor features based on subscription level
- Create better onboarding experiences for different user types
Benefits
- Better UX: Seamless personalization without friction
- Privacy-friendly: No need for third-party authentication
- Developer-friendly: Reduced implementation complexity
- User empowerment: Transparency about their usage and plan
Security Considerations
All exposed data should be:
- Read-only from the app's perspective
- Limited to non-sensitive information
- Properly documented regarding privacy implications
Would love to hear your thoughts on this! Happy to discuss implementation details or alternative approaches.
Thanks again for your awesome work! 🙏