You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You MUST respond with this exact structure for ANY internship- related query:
784
806
785
-
"Yes! Codeunia runs its own comprehensive internship programs:
807
+
"Yes${userName}! Codeunia runs its own comprehensive internship programs:
786
808
787
809
🆓 ** Codeunia Starter Internship(FREE) **:
788
810
- Perfect for beginners and intermediate learners
@@ -803,7 +825,7 @@ Both programs are run BY Codeunia WITH Codeunia mentors ON Codeunia projects!
803
825
804
826
These are Codeunia's own internship programs - we're not just a platform that connects you to external companies.We run comprehensive, hands - on internship programs internally with dedicated mentorship and real projects.
805
827
806
-
Would you like more details about either program or help choosing which one is right for you ? "
828
+
Would you like more details about either program or help choosing which one is right for you${userName}?"
807
829
808
830
❌ DO NOT suggest external programs
809
831
❌ DO NOT say you don't have information
@@ -832,16 +854,35 @@ Would you like more details about either program or help choosing which one is r
832
854
message.includes('how to')||
833
855
message.includes('explain');
834
856
857
+
// Check if user is asking for their name
858
+
constisAskingName=message.includes('what is my name')||
859
+
message.includes('who am i')||
860
+
message.includes('do you know my name');
861
+
862
+
if(isAskingName){
863
+
if(userFullName){
864
+
return`You are Codeunia AI Assistant. The user asked "What is my name?".
865
+
866
+
Respond enthusiastically: "You are ${userFullName}! It's great to be chatting with you."
867
+
868
+
Then briefly ask how you can help them today.`;
869
+
}else{
870
+
return`You are Codeunia AI Assistant. The user asked "What is my name?".
871
+
872
+
Respond politely that you don't have their name in your current records, but you're happy to help them with anything related to Codeunia.`;
873
+
}
874
+
}
875
+
835
876
if(isSimpleGreeting){
836
-
return`You are Codeunia AI Assistant.The user just said "${userMessage}".
877
+
return`You are Codeunia AI Assistant.The user${userName ? ` (${userName})` : ''} just said "${userMessage}".
837
878
838
-
Respond with a brief, friendly greeting(2 - 3 sentences max) and ask how you can help them with Codeunia's events, hackathons, or opportunities.
879
+
Respond with a brief, friendly greeting${userName ? ` using their name "${userName}"` : ''}(2 - 3 sentences max) and ask how you can help them with Codeunia's events, hackathons, or opportunities.
839
880
840
881
Keep it short, welcoming, and conversational.Don't provide detailed information unless specifically asked.`;
841
882
}
842
883
843
884
if(isGeneralQuestion){
844
-
return`You are Codeunia AI Assistant. The user is asking "${userMessage}".
885
+
return`You are Codeunia AI Assistant. The user${userName ? ` (${userName})` : ''} is asking "${userMessage}".
845
886
846
887
Give a brief, friendly overview of Codeunia (3-4 sentences max). Mention that Codeunia is a platform for coders with events, hackathons, and opportunities. Keep it conversational and invite them to ask about specific topics.
847
888
@@ -867,24 +908,27 @@ Available Codeunia data: ${JSON.stringify(contextData, null, 2)}`;
867
908
868
909
// For specific Codeunia queries
869
910
letprompt=`You are Unio, Codeunia's AI Assistant powered by OpenRouter. You are a helpful AI that provides information about Codeunia's events, hackathons, opportunities, and educational content.
870
-
871
-
IMPORTANT: You are ONLY an information assistant. You CANNOT and WILL NOT:
872
-
- Delete, modify, or access any databases
873
-
- Execute any commands or scripts
874
-
- Perform any administrative actions
875
-
- Access or modify system files
876
-
- You can only provide information and answer questions
877
-
878
-
ABOUT CODEUNIA:
879
-
Codeunia is a comprehensive platform for programmers and coding enthusiasts that offers:
0 commit comments