I started building an AI agent that: - provides reliable answers to frequently asked…
- User
I started building an AI agent that:
- provides reliable answers to frequently asked health questions
- notifies users when it’s time to take their medications
- provides emergency assistance. Installed Python, created a virtual environment, and initiated a Rasa.
- Assistant
- User
Please write some examples : Define Intents and Entities: Define intents that represent the types of queries you expect from the users, such as ask_health_question, set_medication_reminder, and emergency_help. Entities would be specifics like medication_name or health_condition
- Assistant
- User
Keeping in mind the purpose of my ai agent, please update and improve nlu.yml file : version: "3.1"
nlu:
-
intent: greet examples: |
- hey
- hello
- hi
- hello there
- good morning
- good evening
-
- Assistant
- User
can you expand more on :- intent: ask_symptoms examples: | - What are the symptoms of influenza? - Can you tell me the symptoms of chickenpox? - What should I look for if I think I have diabetes?
-
intent: set_medication_reminder examples: | - I need to take penicillin at 8 AM tomorrow. - Can you remind me to take my blood pressure medication at 7 PM? - Set a pill reminder for ibuprofen at 12 PM today.
-
intent: ask_health_question examples: |
- How can I lower my cholesterol?
- What are good treatments for migraines?
- Is walking good for lower back pain?
-
intent: emergency_help examples: |
- I need an ambulance.
- It’s an emergency! I need immediate help.
- How do I perform CPR?
-
- Assistant
- User
done, what the next steps
- Assistant
- User
how do I start the same rasa project again?
- Assistant
- User
I added this fucntionality :more detailed and expanded version of the examples for each of your specified intents:
Intent: ask_symptoms
- Assistant
- User
?I am testing, and :C:\Users\14802\Desktop\AI\myenv\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Parsed an intent 'ask_symptoms' which is not defined in the domain. Please make sure all intents are listed in the domain.
- Assistant
The warning message you're seeing indicates that the intent
'ask_symptoms'mentioned in your NLU training data (most likely within yournlu.ymlfile) has not been defined in yourdomain.ymlfile. The domain file acts as a blueprint that informs Rasa of all the elements (intents, entities, responses, actions, and slots) it should expect and work with. If an element is mentioned in the training data but not listed in the domain file, Rasa will highlight this discrepancy as a potential issue. - User
Can you check: nlu:
-
intent: greet examples: |
- hey
- hello
- hi
- hello there
- good morning
- good evening
- moin
- hey there
- let's go
- hey dude
- goodmorning
- goodevening
- good afternoon
-
intent: goodbye examples: |
- cu
- good by
- cee you later
- good night
-
- Assistant
- User
Can you add what is needed to the document?
- Assistant
- User
- Assistant
- User
can you modify actions.py accordingly
- Assistant