kenken999 commited on
Commit
cd841f0
1 Parent(s): 4b091fa
mysite/interpreter/google_chat.py CHANGED
@@ -32,78 +32,7 @@ def send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,imag
32
  "textParagraph": {
33
  "text": "<b>{}</b>".format(link_text)
34
  }
35
- },
36
- {
37
- "buttons": [
38
- {
39
- "textButton": {
40
- "text": "Open Link",
41
- "onClick": {
42
- "openLink": {
43
- "url": link_url
44
- }
45
- }
46
- }
47
- }
48
- ]
49
- },
50
- {
51
- "textParagraph": {
52
- "text": "<b>{}</b>".format("ライン返信テストボットで確認\r\n FBで問題の無い場合LINEに設定")
53
- }
54
- },
55
- {
56
- "buttons": [
57
- {
58
- "textButton": {
59
- "text": "Open Link",
60
- "onClick": {
61
- "openLink": {
62
- "url": "https://www.coze.com/store/bot/7372534558954176520?panel=1&bid=6cufmd89s6g0i"
63
- }
64
- }
65
- }
66
- }
67
- ]
68
- },
69
- {
70
- "textParagraph": {
71
- "text": "<b>{}</b>".format("ラインで確認 赤ペディアで確認")
72
- }
73
- },
74
- {
75
- "buttons": [
76
- {
77
- "textButton": {
78
- "text": "Open Link",
79
- "onClick": {
80
- "openLink": {
81
- "url": "https://chat.line.biz/U8bbe7c4314bb68f7790f57c33a86faa0"
82
- }
83
- }
84
- }
85
- }
86
- ]
87
- },
88
- {
89
- "textParagraph": {
90
- "text": "<b>{}</b>".format("ライン返信テストボットデータ設定\r\n エクセルで会話データのアップ")
91
- }
92
- },
93
- {
94
- "buttons": [
95
- {
96
- "textButton": {
97
- "text": "Open Link",
98
- "onClick": {
99
- "openLink": {
100
- "url": "https://www.coze.com/home"
101
- }
102
- }
103
- }
104
- }
105
- ]
106
- },
107
  ]
108
  }
109
  ]
 
32
  "textParagraph": {
33
  "text": "<b>{}</b>".format(link_text)
34
  }
35
+ },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  ]
37
  }
38
  ]
mysite/routers/fastapi.py CHANGED
@@ -235,8 +235,8 @@ def setup_webhook_routes(app: FastAPI):
235
  #user_name,thmbnail#
236
  title = f""" {user_name}様から下記の質問があります"""
237
  subtitle = f"""<b>ユーザーID</b> {user_id}\r\n <b>質問内容</b> {text}"""
238
- link_text = "解析用 プロンプト、商品、会話データ登録\r\n類似データ検索用(検索指標相談)"
239
- link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
240
  #test_set_lide(subtitle, text)
241
  thread_name = send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,thmbnail)
242
 
 
235
  #user_name,thmbnail#
236
  title = f""" {user_name}様から下記の質問があります"""
237
  subtitle = f"""<b>ユーザーID</b> {user_id}\r\n <b>質問内容</b> {text}"""
238
+ link_text = "チャットボット設定用シート"
239
+ link_url = "https://docs.google.com/spreadsheets/d/13pqP-Ywo5eRlZBsYX2m3ChARG38EoIYOowFd3cWij1c/edit?gid=283940886#gid=283940886"
240
  #test_set_lide(subtitle, text)
241
  thread_name = send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,thmbnail)
242