[WIP] Fix AI chatbot response length for better user experience#6
Merged
[WIP] Fix AI chatbot response length for better user experience#6
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Copilot stopped work on behalf of
redsunjin due to an error
March 9, 2026 15:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.
Original prompt
목표
AI 챗봇의 답변이 너무 길고 대화가 많아 사용자 경험이 저하되는 문제를 해결합니다.
답변을 짧고 컴팩트하게 유지하면서 2~3번 대화 안에 담당자 연결까지 완료되도록 흐름을 개선합니다.
변경 1:
api/chat.js— 시스템 프롬프트 교체 + 코드 단순화변경 내용
callGeminiWithRetry함수 제거, 단순try/catch로 교체[INQUIRY_COMPLETE]태그 포함 가능, 최대 3번 후 무조건 포함완성 코드
변경 2:
index.html— 메시지 및 대화 흐름 간소화현재
index.html의 BlobSha:e916096c50d1c850c97c3f93f552a8808a36f943변경 포인트
handleInquiryStep함수 —while루프 제거,try/catch단순화:개인정보 거절 시 메시지:
'알겠습니다. 언제든지 다시 방문해 주세요. 😊'연락처 요청 메시지:
`${collectedName}님, 이메일 또는 전화번호를 알려주세요.`발송 성공 메시지:
'접수 완료! 담당자가 확인 후 연락드리겠습니다. ⚡'기대 효과
4회 → **23회**로 단축This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.