kenken999 commited on
Commit
d93baed
1 Parent(s): 1f11950
babyagi/prompt.txt CHANGED
@@ -1 +1 @@
1
- 6.64の質問 についてチャットボットでよりよく対応するプランを日本語で作成して
 
1
+ 【リッチメニュー】取扱商材の質問 についてチャットボットでよりよく対応するプランを日本語で作成して
chat_history.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c759b2c3d720ef3b4932b9a8ecaa67157422c3aa243f8f40a5da5cbd8aad042c
3
- size 1638400
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48f3665e0988495246b21dc4afc067a183868927515926b6d313e26d66800586
3
+ size 1658880
controllers/gpt_enginner20240626072959 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 7b036fcd7f2477a905e8466289747d704c9c3b95
controllers/gpt_enginner20240626073251 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit afc655d71656743f089a8646fcd52b5ce635f2db
controllers/gpt_enginner20240626073549 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 1ec9073aa6ae515981677f25ef7796cae0d02257
routers/webhook.py CHANGED
@@ -20,6 +20,8 @@ from mysite.appsheet.appsheet import get_senario
20
  import asyncio
21
  from prompts.promps import prompt_for_create_system,prompt,get_prompt
22
  from command.line_get_user_profile import get_user_profile
 
 
23
  logger = logging.getLogger(__name__)
24
 
25
  #router = APIRouter()
@@ -41,6 +43,7 @@ async def webhook(request: Request):
41
  webhook_url = os.getenv("chat_url")
42
  token = os.getenv("token")
43
  ChannelAccessToken = os.getenv('ChannelAccessToken')
 
44
 
45
  thread_name=""
46
  #return
@@ -74,9 +77,16 @@ async def webhook(request: Request):
74
  link_url = "https://docs.google.com/spreadsheets/d/13pqP-Ywo5eRlZBsYX2m3ChARG38EoIYOowFd3cWij1c/edit?gid=283940886#gid=283940886"
75
  #test_set_lide(subtitle, text)
76
  thread_name = send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,thmbnail)
77
- from command.n8n import post_data
78
- import time
79
- n8nurl = os.getenv("n8nhook")
 
 
 
 
 
 
 
80
  post_data(n8nurl,text,thread_name)
81
  time.sleep(10)
82
  #########################################################################
 
20
  import asyncio
21
  from prompts.promps import prompt_for_create_system,prompt,get_prompt
22
  from command.line_get_user_profile import get_user_profile
23
+ from command.n8n import post_data
24
+ import time
25
  logger = logging.getLogger(__name__)
26
 
27
  #router = APIRouter()
 
43
  webhook_url = os.getenv("chat_url")
44
  token = os.getenv("token")
45
  ChannelAccessToken = os.getenv('ChannelAccessToken')
46
+ n8nurl = os.getenv("n8nhook")
47
 
48
  thread_name=""
49
  #return
 
77
  link_url = "https://docs.google.com/spreadsheets/d/13pqP-Ywo5eRlZBsYX2m3ChARG38EoIYOowFd3cWij1c/edit?gid=283940886#gid=283940886"
78
  #test_set_lide(subtitle, text)
79
  thread_name = send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,thmbnail)
80
+
81
+ #########################################################################
82
+ ### n8n WorkFlowStart
83
+ #########################################################################
84
+
85
+ #for debug
86
+ post_data("https://kenken999-nodex-n8n.hf.space//webhook-test/d2d0af6e-5c42-45b6-a923-3bd2d8520e3f",text,thread_name)
87
+
88
+
89
+
90
  post_data(n8nurl,text,thread_name)
91
  time.sleep(10)
92
  #########################################################################