The NPC with ChatGPT - AI Dialog package brings AI-driven dialog capabilities to your non-player characters (NPCs), allowing for dynamic and engaging conversations with lifelike responses. Key features include AI-driven NPC dialog, natural language understanding, dynamic responses, adaptive behavior, customization options, and the ability to match desired personality. This solution enhances immersion, interactive storytelling, and dynamic and intelligent characters, making it an ideal choice for Unity projects.
To use this package, follow these steps:
- Import the unity package.
- Choose the ChatGPTConversation prefab and adjust settings, including adding your ChatGPT API key, proxy options, max tokens, and initial prompt.
- In the scene, select the InputField in the User Input Handler component and the output window in the Chat GPT Display Component.
- Add the ChatGPTConversation GameObject to the OnEndEdit Event of the InputField.
- Write your question in the InputField and press enter to receive an answer.





