-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
193 lines (173 loc) · 5.03 KB
/
index.html
File metadata and controls
193 lines (173 loc) · 5.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Salon Agent Demo</title>
<meta name="description" content="Public demo page for the Hair Haven Salon conversational agent.">
<style>
:root {
--bg: #f6f1ea;
--panel: #fffaf5;
--ink: #1e1d1a;
--muted: #6d665c;
--accent: #b65a3c;
--line: #dfd4c8;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Georgia, "Times New Roman", serif;
color: var(--ink);
background:
radial-gradient(circle at top left, rgba(182, 90, 60, 0.14), transparent 28%),
linear-gradient(180deg, #fbf6f0 0%, var(--bg) 100%);
min-height: 100vh;
}
main {
max-width: 1100px;
margin: 0 auto;
padding: 48px 20px 72px;
}
.hero {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 24px;
align-items: stretch;
}
.card {
background: rgba(255, 250, 245, 0.88);
border: 1px solid var(--line);
border-radius: 24px;
box-shadow: 0 20px 60px rgba(40, 28, 16, 0.08);
backdrop-filter: blur(4px);
}
.intro {
padding: 34px;
}
.eyebrow {
margin: 0 0 14px;
font-size: 13px;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--accent);
}
h1 {
margin: 0 0 16px;
font-size: clamp(2.3rem, 4vw, 4.4rem);
line-height: 0.96;
font-weight: 600;
}
.lead {
margin: 0 0 24px;
font-size: 1.08rem;
line-height: 1.7;
color: var(--muted);
max-width: 58ch;
}
.list {
display: grid;
gap: 12px;
padding: 0;
margin: 0;
list-style: none;
}
.list li {
padding: 14px 16px;
border-radius: 16px;
background: rgba(182, 90, 60, 0.06);
border: 1px solid rgba(182, 90, 60, 0.12);
font-size: 0.98rem;
}
.widget-shell {
min-height: 620px;
padding: 18px;
display: flex;
align-items: stretch;
}
.widget-frame {
width: 100%;
min-height: 100%;
border-radius: 18px;
overflow: hidden;
background: #fff;
border: 1px solid var(--line);
}
chat-messenger {
width: 100%;
height: 100%;
display: block;
}
.footer-note {
margin-top: 18px;
font-size: 0.92rem;
color: var(--muted);
}
@media (max-width: 900px) {
.hero {
grid-template-columns: 1fr;
}
.widget-shell {
min-height: 560px;
}
}
</style>
<script defer src="https://www.gstatic.com/ces-console/fast/chat-messenger/prod/v1.12/chat-messenger.js"></script>
<link rel="stylesheet" href="https://www.gstatic.com/ces-console/fast/chat-messenger/prod/v1.12/themes/chat-messenger-default.css">
<link rel="stylesheet" href="https://www.gstatic.com/ces-console/fast/chat-messenger/prod/v1.10/themes/chat-messenger-layout.css">
<script>
window.addEventListener("chat-messenger-loaded", () => {
chatSdk.registerContext(
chatSdk.prebuilts.ces.createContext({
deploymentName: "projects/ai-in-business-ex2/locations/us/apps/9f3f4aab-4ca9-4458-9f60-cd3808431ffc/deployments/49445a0f-9bde-4759-8cdb-963c9319fd7a",
tokenBroker: {
enableTokenBroker: true,
enableRecaptcha: true,
},
}),
);
});
</script>
</head>
<body>
<main>
<section class="hero">
<article class="card intro">
<p class="eyebrow">Hair Haven Salon</p>
<h1>Salon Agent Demo</h1>
<p class="lead">
This demo lets visitors ask about salon services, pricing, stylist availability,
and appointment guidance through the deployed Vertex AI conversational agent.
</p>
<ul class="list">
<li>📌 Ask about services such as classic cuts, pixie cuts, balayage, and highlights.</li>
<li>📌 Check stylist availability for Clifton, Hazel, and Rowan.</li>
<li>📌 Get pricing guidance and salon contact details.</li>
<li>📌 Receive booking guidance, with long-duration services redirected to phone support.</li>
</ul>
<p class="footer-note">
The demo chatbot create by Chisin Wu using Vertex AI agent(03/02/2026 version).
</p>
</article>
<section class="card widget-shell">
<div class="widget-frame">
<chat-messenger url-allowlist="*">
<chat-messenger-container
chat-title="Salon Agent"
chat-title-icon="https://gstatic.com/dialogflow-console/common/assets/ccai-favicons/conversational_agents.png"
enable-file-upload
>
<chat-reset-session-button
slot="titlebar-actions"
title-text="Start new chat"
></chat-reset-session-button>
</chat-messenger-container>
</chat-messenger>
</div>
</section>
</section>
</main>
</body>
</html>