From 1e918d069fe4531cff32191cc6c0286573a4eb6e Mon Sep 17 00:00:00 2001 From: Yash <67926590+Yash094@users.noreply.github.com> Date: Fri, 23 May 2025 00:13:12 +0530 Subject: [PATCH 1/7] siwa chat widget --- .../app/(app)/(dashboard)/support/page.tsx | 12 +- .../app/nebula-app/(app)/components/Chats.tsx | 90 ++++- .../CustomChat/CustomChatButton.tsx | 93 +++++ .../CustomChat/CustomChatContent.tsx | 345 ++++++++++++++++++ 4 files changed, 532 insertions(+), 8 deletions(-) create mode 100644 apps/dashboard/src/app/nebula-app/(app)/components/CustomChat/CustomChatButton.tsx create mode 100644 apps/dashboard/src/app/nebula-app/(app)/components/CustomChat/CustomChatContent.tsx diff --git a/apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx b/apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx index d95e5d2032e..2872c01835d 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx +++ b/apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx @@ -10,7 +10,7 @@ import contractsIcon from "../../../../../public/assets/support/contracts.png"; import engineIcon from "../../../../../public/assets/support/engine.png"; import miscIcon from "../../../../../public/assets/support/misc.svg"; import connectIcon from "../../../../../public/assets/support/wallets.png"; -import { NebulaChatButton } from "../../../nebula-app/(app)/components/FloatingChat/FloatingChat"; +import { CustomChatButton } from "../../../nebula-app/(app)/components/CustomChat/CustomChatButton"; import { getAuthToken, getAuthTokenWalletAddress, @@ -129,8 +129,7 @@ export default async function SupportPage() { teamId: undefined, }); - const supportPromptPrefix = - "You are a Customer Success Agent at thirdweb, assisting customers with blockchain and Web3-related issues. Use the following details to craft a professional, empathetic response: "; + const supportPromptPrefix =""; const examplePrompts = [ "ERC20 - Transfer Amount Exceeds Allowance", "Replacement transaction underpriced / Replacement fee too low", @@ -157,14 +156,14 @@ export default async function SupportPage() { team.
+ Sign in to use Nebula AI +
- Sign in to use Nebula AI + Sign in to use AI Assistant