I am naive to this domain
if tracker.latest_message[“intent”].get(“name”) == “corona_help”:
required_slots = [“pin_code_confirmation”, “category_confirmation”]
If my input is corona_help it should traverse through two required slots actions.py (7.1 KB) but it is taking only one at time.
If you have any idea about this. Please help
rasa --version
rasa==2.7.1
rasa-sdk==2.7.0
nik202
(NiK202)
July 2, 2021, 12:41am
2
@manojbanoth Try run. Hope it work
actions.py (7.1 KB) I doubt but still.
Do check this in case your required : Forms
If not make a necessary change
if tracker.latest_message.get("corona_help"):
In you original code.
@nik202 Throwing the error in both cases
nik202
(NiK202)
July 2, 2021, 1:05am
4
@manojbanoth Yes, I know.
Check code line 50 - 56 as you mentioned slots_mapped_in_domain but you not using.
update code something like
required_slots = slots_mapped_in_domain + ["corona help"]
Sorry about previous thread
I add this it will add extra slot right?
No need to say sorry for the previous thread it helped me a alot
nik202
(NiK202)
July 2, 2021, 1:20am
6
@manojbanoth do check this ok, sorry bit exhausted now rasa-sdk - githubmemory
I wish this will help you to get your solution. Do check the complete codes with files. I checked its matching with your objective Do let me know in morning. Good Night Mate!
nik202
(NiK202)
July 2, 2021, 10:03pm
8
@manojbanoth Any update? That link helped?
@nik202 I am still stuck. I have updated my action file actions.py (8.5 KB) but throwing error of extract_custom_slots. \
please help me to resolve this issue
nik202
(NiK202)
July 2, 2021, 10:06pm
11
@manojbanoth
share me the original screenshot please of the error.
@nik202
This is a rasa run actions error
and
rasa shell error after giving input as hi
nik202
(NiK202)
July 2, 2021, 10:12pm
13
@manojbanoth you in code using API? for fetching data? Have you adopted the proper JSON structure to fetch that key-value?
@nik202 I have done that in jupyter notebook. JSON structure is working fine
nik202
(NiK202)
July 2, 2021, 10:17pm
15
@manojbanoth Just sort that out first whilst fetching the key-value using only that script in Jupiter Notebook or PyCharm etc.
nik202
(NiK202)
July 2, 2021, 10:20pm
16
@manojbanoth can you highlight this part more to me what you trying to archive?
https://api.postalpincode.in/pincode/{slot_value}
slot_value= ?
working fine checked again
If a user input as pin_code (zip code) say example 600036 is slot value
nik202
(NiK202)
July 2, 2021, 10:27pm
19
@manojbanoth If your API is working fine then I guess other section of code fetching requested_slot, slot_value or intent etc is not working as your error is POST request time out.
nik202
(NiK202)
July 6, 2021, 8:28pm
23
@manojbanoth Hey, I guess after detail discussion you were able to solve this issue or still you having problem?
@nik202 I found my error. I haven’t solved it, I stuck with the logic.
I have been trying a lot.
Thanks for the help.