Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Surya Narayana
/
ai-workforce-rasa
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2926f38b
authored
Feb 18, 2021
by
Sai Komuravelli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
timezone changes and nlu exp added
parent
4f78bb67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
actions/actions.py
data/nlu.md
actions/actions.py
View file @
2926f38b
...
...
@@ -7,6 +7,10 @@ from rasa_sdk.events import SlotSet
import
re
from
twilio.rest
import
Client
from
datetime
import
datetime
import
time
,
os
os
.
environ
[
'TZ'
]
=
'US/Central'
time
.
tzset
()
account_sid
=
"ACc460d692e5a467c60b352714b1416140"
auth_token
=
"bf2a890f36e3329b52d0516a14097623"
...
...
@@ -173,7 +177,7 @@ class greet_primary_information(FormAction):
if
eachDict
[
'name'
]
==
'time'
:
timeentity
=
eachDict
[
'value'
]
#timeentity=tracker.events[-1]['parse_data']['entities'][0]['value']
matchedDate
=
datetime
.
strptime
(
timeentity
,
"
%
Y-
%
m-
%
dT
%
H:
%
M:
%
S.000
+00
:00"
)
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
matchedDate
=
datetime
.
strptime
(
timeentity
,
"
%
Y-
%
m-
%
dT
%
H:
%
M:
%
S.000
-06
:00"
)
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
print
(
"matchedDate"
,
matchedDate
)
# Since both the fields are populated, the form
# will no longer prompt the user separately for the end_date
...
...
data/nlu.md
View file @
2926f38b
...
...
@@ -43,8 +43,13 @@
-
yes, I am interested. what do you have?
-
do you have a job?
## intent:deny
-
I am not currently looking to move right now but I will definitely keep you in mind when that time comes. Thanks!
-
Thanks for your consideration, but not at this time.'
-
sorry not in the market
-
no retired
-
fuck off
-
fuck you
-
go to hell
-
not exactly
-
i am working
-
I have a job, not looking
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment