-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresources.py
More file actions
321 lines (290 loc) · 13.6 KB
/
Copy pathresources.py
File metadata and controls
321 lines (290 loc) · 13.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# enhanced_resources = [
# {
# "concern": "stress",
# "synonyms": ["stressed", "overwhelmed", "pressure", "burnt out"],
# "responses": [
# """🌪️ Stress can feel like an emotional storm. Here's your action plan:
# 1. **Grounding Technique**: 5-4-3-2-1 method - Name:
# - 5 things you see
# - 4 things you can touch
# - 3 sounds you hear
# - 2 scents you smell
# - 1 flavor you taste
# 2. **Physiological Sigh**: Double inhale through nose, long exhale through mouth (reduces cortisol fastest)
# 3. **Prioritization**: Use Eisenhower Matrix:
# - Urgent/Important ➔ Do now
# - Not Urgent/Important ➔ Schedule
# - Urgent/Not Important ➔ Delegate
# - Neither ➔ Eliminate""",
# """🧠 Your stressed brain needs rewiring. Try:
# • **Cognitive Defusion**: Imagine thoughts as clouds passing by
# • **Progressive Muscle Relaxation**: Tense/release muscle groups
# • **Nature Therapy**: 20 mins in green space lowers cortisol by 15%
# • **Art Expression**: Doodle or color for 10 mins
# 📈 Research shows these reduce stress biomarkers within 3 weeks"""
# ],
# "follow_up": "Would you like me to suggest some stress-tracking tools or apps to monitor your progress?",
# "resource_link": "https://www.apa.org/topics/stress"
# },
# {
# "concern": "anxiety",
# "synonyms": ["anxious", "nervous", "panic", "worried"],
# "responses": [
# """🌀 Anxiety often comes in waves. Ride them with:
# **Immediate Relief**:
# 🔵 TIPP Skills:
# - **T**emperature (cold water on face)
# - **I**ntense exercise (30 sec burst)
# - **P**aced breathing (4-7-8)
# - **P**aired relaxation (tense/release)
# **Long-Term Tools**:
# 🟢 Worry Period: Schedule 15-min "worry time" daily
# 🟢 Evidence Log: Track predictions vs outcomes
# 🟢 Sensory Kit: Keep calming objects nearby""",
# """🧪 Neuroscience-backed anxiety reducers:
# 1. **Alternate Nostril Breathing**: Balances nervous system
# 2. **Bilateral Stimulation**: Tap knees alternately
# 3. **54321 Grounding**: Engage all senses
# 4. **Humming**: Activates vagus nerve
# 📉 Studies show these techniques can reduce anxiety symptoms by 40% in 3 weeks"""
# ],
# "follow_up": "Would a step-by-step guide for any of these techniques be helpful right now?",
# "resource_link": "https://www.anxietycanada.com"
# },
# {
# "concern": "depression",
# "synonyms": ["depressed", "sad", "hopeless"],
# "responses": [
# """🕯️ Depression can dim your light. Try reigniting with:
# **Behavioral Activation**:
# 1. 🧹 Small Wins: Make bed, shower, dress
# 2. 🌞 Light Exposure: 10am-2pm sunlight
# 3. 🤝 Social Microdosing: Brief positive interactions
# 4. 🎯 Mastery Activities: Easy accomplishments
# **Cognitive Tools**:
# • Thought Records: Track negative thoughts
# • Positivity Collection: Save uplifting content
# • Future Self Visualization: Write letter from healed you""",
# """🧬 Neuroplasticity-based approaches:
# 1. **Novelty Seeking**: Try one new thing weekly
# 2. **Positive Memory Activation**: Recall 3 good moments daily
# 3. **Altruistic Acts**: Small kindnesses boost serotonin
# 4. **Rhythmic Movement**: Dancing, swimming, rocking
# 💡 Research indicates these can stimulate neurogenesis in the hippocampus"""
# ],
# "follow_up": "Would you like help creating a personalized self-care schedule?",
# "resource_link": "https://www.nimh.nih.gov/health/topics/depression"
# }
# ]
# enhanced_resources = [
# {
# "concern": "stress",
# "synonyms": ["stressed", "overwhelmed", "pressure", "burnt out"],
# "responses": [
# """🌪️ Stress can feel like an emotional storm. Here's your action plan:
# 1. **Grounding Technique**: 5-4-3-2-1 method - Name:
# - 5 things you see
# - 4 things you can touch
# - 3 sounds you hear
# - 2 scents you smell
# - 1 flavor you taste
# 2. **Physiological Sigh**: Double inhale through nose, long exhale through mouth (reduces cortisol fastest)
# 3. **Prioritization**: Use Eisenhower Matrix:
# - Urgent/Important ➔ Do now
# - Not Urgent/Important ➔ Schedule
# - Urgent/Not Important ➔ Delegate
# - Neither ➔ Eliminate""",
# """🧠 Your stressed brain needs rewiring. Try:
# • **Cognitive Defusion**: Imagine thoughts as clouds passing by
# • **Progressive Muscle Relaxation**: Tense/release muscle groups
# • **Nature Therapy**: 20 mins in green space lowers cortisol by 15%
# • **Art Expression**: Doodle or color for 10 mins
# 📈 Research shows these reduce stress biomarkers within 3 weeks"""
# ],
# "follow_up": "Would you like me to suggest some stress-tracking tools or apps to monitor your progress?",
# "resource_link": "https://www.apa.org/topics/stress"
# },
# {
# "concern": "anxiety",
# "synonyms": ["anxious", "nervous", "panic", "worried"],
# "responses": [
# """🌀 Anxiety often comes in waves. Ride them with:
# 🔵 **TIPP Skills**:
# - **T**emperature (cold water on face)
# - **I**ntense exercise (30 sec burst)
# - **P**aced breathing (4-7-8)
# - **P**aired relaxation (tense/release)
# 🟢 **Long-Term Tools**:
# - Worry Period: Schedule 15-min "worry time" daily
# - Evidence Log: Track predictions vs outcomes
# - Sensory Kit: Keep calming objects nearby""",
# """🧪 Neuroscience-backed anxiety reducers:
# 1. **Alternate Nostril Breathing**: Balances nervous system
# 2. **Bilateral Stimulation**: Tap knees alternately
# 3. **54321 Grounding**: Engage all senses
# 4. **Humming**: Activates vagus nerve
# 📉 Studies show these techniques can reduce anxiety symptoms by 40% in 3 weeks"""
# ],
# "follow_up": "Would a step-by-step guide for any of these techniques be helpful right now?",
# "resource_link": "https://www.anxietycanada.com"
# },
# {
# "concern": "depression",
# "synonyms": ["depressed", "sad", "hopeless"],
# "responses": [
# """🕯️ Depression can dim your light. Try reigniting with:
# **Behavioral Activation**:
# 1. 🧹 Small Wins: Make bed, shower, dress
# 2. 🌞 Light Exposure: 10am-2pm sunlight
# 3. 🤝 Social Microdosing: Brief positive interactions
# 4. 🎯 Mastery Activities: Easy accomplishments
# **Cognitive Tools**:
# • Thought Records: Track negative thoughts
# • Positivity Collection: Save uplifting content
# • Future Self Visualization: Write letter from healed you""",
# """🧬 Neuroplasticity-based approaches:
# 1. **Novelty Seeking**: Try one new thing weekly
# 2. **Positive Memory Activation**: Recall 3 good moments daily
# 3. **Altruistic Acts**: Small kindnesses boost serotonin
# 4. **Rhythmic Movement**: Dancing, swimming, rocking
# 💡 Research indicates these can stimulate neurogenesis in the hippocampus"""
# ],
# "follow_up": "Would you like help creating a personalized self-care schedule?",
# "resource_link": "https://www.nimh.nih.gov/health/topics/depression"
# },
# {
# "concern": "anger",
# "synonyms": ["angry", "frustrated", "enraged", "irritated"],
# "responses": [
# """🔥 Anger is energy. Channel it constructively:
# - **Breathing Reset**: Inhale for 4, hold for 4, exhale for 6
# - **Physical Release**: Fast walk, push-ups, hit a punching bag
# - **Cognitive Reframe**: Ask 'What is this anger protecting?'
# - **Delay Reaction**: Wait 10 min before responding""",
# """🛑 Science-backed ways to cool anger:
# - **Cold Exposure**: Hold ice cubes or splash cold water
# - **Humor Shift**: Watch a funny video to reset perspective
# - **Name It to Tame It**: Label the anger to reduce intensity
# - **Journaling**: Write out feelings before acting on them"""
# ],
# "follow_up": "Would you like guidance on anger management exercises?",
# "resource_link": "https://www.apa.org/topics/anger"
# },
# {
# "concern": "grief",
# "synonyms": ["grieving", "loss", "bereaved", "mourning"],
# "responses": [
# """💔 Grief comes in waves. Ride them gently:
# - **Acknowledge**: Grief is nonlinear, all feelings are valid
# - **Rituals**: Light a candle, write a letter, plant something in memory
# - **Connection**: Share memories with loved ones
# - **Self-Compassion**: Speak to yourself like a friend""",
# """🌿 Healing grief takes time. Try:
# - **Guided Meditations**: Use apps like Calm or Insight Timer
# - **Creative Expression**: Paint, write, or compose in memory
# - **Volunteer**: Helping others can create meaning from loss
# - **Therapeutic Letter Writing**: Write to your lost loved one"""
# ],
# "follow_up": "Would you like recommendations for grief support groups?",
# "resource_link": "https://www.grief.com"
# }
# ]
enhanced_resources = [
{
"concern": "stress",
"synonyms": ["stressed", "overwhelmed", "pressure", "burnt out"],
"responses": [
"""🌪️ Stress can feel like an emotional storm. Here's your action plan:
1. **Grounding Technique**: 5-4-3-2-1 method - Name:
- 5 things you see
- 4 things you can touch
- 3 sounds you hear
- 2 scents you smell
- 1 flavor you taste
2. **Physiological Sigh**: Double inhale through nose, long exhale through mouth (reduces cortisol fastest)
3. **Prioritization**: Use Eisenhower Matrix:
- Urgent/Important ➔ Do now
- Not Urgent/Important ➔ Schedule
- Urgent/Not Important ➔ Delegate
- Neither ➔ Eliminate""",
"""🧠 Your stressed brain needs rewiring. Try:
• **Cognitive Defusion**: Imagine thoughts as clouds passing by
• **Progressive Muscle Relaxation**: Tense/release muscle groups
• **Nature Therapy**: 20 mins in green space lowers cortisol by 15%
• **Art Expression**: Doodle or color for 10 mins
📈 Research shows these reduce stress biomarkers within 3 weeks"""
],
"follow_up": "Would you like me to suggest some stress-tracking tools or apps to monitor your progress?",
"feedback": "Did this help you feel a little less stressed? Let me know if you'd like more techniques! (Rate 1-5)",
"resource_link": "https://www.apa.org/topics/stress"
},
{
"concern": "anxiety",
"synonyms": ["anxious", "nervous", "panic", "worried"],
"responses": [
"""🌀 Anxiety often comes in waves. Ride them with:
🔵 **TIPP Skills**:
- **T**emperature (cold water on face)
- **I**ntense exercise (30 sec burst)
- **P**aced breathing (4-7-8)
- **P**aired relaxation (tense/release)
🟢 **Long-Term Tools**:
- Worry Period: Schedule 15-min "worry time" daily
- Evidence Log: Track predictions vs outcomes
- Sensory Kit: Keep calming objects nearby""",
"""🧪 Neuroscience-backed anxiety reducers:
1. **Alternate Nostril Breathing**: Balances nervous system
2. **Bilateral Stimulation**: Tap knees alternately
3. **54321 Grounding**: Engage all senses
4. **Humming**: Activates vagus nerve
📉 Studies show these techniques can reduce anxiety symptoms by 40% in 3 weeks"""
],
"follow_up": "Would a step-by-step guide for any of these techniques be helpful right now?",
"feedback": "Was this useful for managing your anxiety? Let me know if you'd like a different approach! (Rate 1-5)",
"resource_link": "https://www.anxietycanada.com"
},
{
"concern": "depression",
"synonyms": ["depressed", "sad", "hopeless"],
"responses": [
"""🕯️ Depression can dim your light. Try reigniting with:
**Behavioral Activation**:
1. 🧹 Small Wins: Make bed, shower, dress
2. 🌞 Light Exposure: 10am-2pm sunlight
3. 🤝 Social Microdosing: Brief positive interactions
4. 🎯 Mastery Activities: Easy accomplishments
**Cognitive Tools**:
• Thought Records: Track negative thoughts
• Positivity Collection: Save uplifting content
• Future Self Visualization: Write letter from healed you""",
"""🧬 Neuroplasticity-based approaches:
1. **Novelty Seeking**: Try one new thing weekly
2. **Positive Memory Activation**: Recall 3 good moments daily
3. **Altruistic Acts**: Small kindnesses boost serotonin
4. **Rhythmic Movement**: Dancing, swimming, rocking
💡 Research indicates these can stimulate neurogenesis in the hippocampus"""
],
"follow_up": "Would you like help creating a personalized self-care schedule?",
"feedback": "Did any of these suggestions feel doable for you? I'm here to adjust them if needed. (Rate 1-5)",
"resource_link": "https://www.nimh.nih.gov/health/topics/depression"
},
{
"concern": "anger",
"synonyms": ["angry", "frustrated", "enraged", "irritated"],
"responses": [
"""🔥 Anger is energy. Channel it constructively:
- **Breathing Reset**: Inhale for 4, hold for 4, exhale for 6
- **Physical Release**: Fast walk, push-ups, hit a punching bag
- **Cognitive Reframe**: Ask 'What is this anger protecting?'
- **Delay Reaction**: Wait 10 min before responding""",
"""🛑 Science-backed ways to cool anger:
- **Cold Exposure**: Hold ice cubes or splash cold water
- **Humor Shift**: Watch a funny video to reset perspective
- **Name It to Tame It**: Label the anger to reduce intensity
- **Journaling**: Write out feelings before acting on them"""
],
"follow_up": "Would you like guidance on anger management exercises?",
"feedback": "Did any of these help calm your anger? Let me know if you need different strategies. (Rate 1-5)",
"resource_link": "https://www.apa.org/topics/anger"
}
]