Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Component Sharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gagandeep Singh Bhatia
Component Sharing
Commits
00aa7436
Commit
00aa7436
authored
Jun 18, 2025
by
Ajit Deshmukh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace WhatsAppBotUtility.java
parent
a314b886
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Ajit/WhatsApp two-way Communication bot/New Intent SQL and Components/Java Component/WhatsAppBotUtility.java
...SQL and Components/Java Component/WhatsAppBotUtility.java
+2
-4
No files found.
Ajit/WhatsApp two-way Communication bot/New Intent SQL and Components/Java Component/WhatsAppBotUtility.java
View file @
00aa7436
...
...
@@ -104,7 +104,7 @@ public class WhatsAppBotUtility {
String
intentResponse
=
callIntentService
(
request
,
intentParams
,
enterprise
,
whatsAppMessage
,
userInfo
);
BaseLogger
.
log
(
"0"
,
null
,
null
,
"[WhatsAppBotUtility] intentResponse "
+
intentResponse
);
String
visionReponse
=
""
;
//
Process the response and send back to user
//
Added parseVisionAssistantResponseJSON method in try catch block to handle the exception
try
{
visionReponse
=
parseVisionAssistantResponseJSON
(
intentResponse
,
messageId
);
BaseLogger
.
log
(
"0"
,
null
,
null
,
"[WhatsAppBotUtility] visionReponse (raw): "
+
visionReponse
);
...
...
@@ -114,9 +114,7 @@ public class WhatsAppBotUtility {
return
"Failed to parse intent response"
;
}
// Remove real and escaped newlines
// visionReponse = visionReponse.replace("\n", " ").replace("\\n", " ");
// visionReponse = visionReponse.replace("\"", "\\\"");
BaseLogger
.
log
(
"0"
,
null
,
null
,
"[WhatsAppBotUtility] visionReponse (sanitized): "
+
visionReponse
);
sendWhatsAppReply
(
integratedNumber
,
userPhone
,
visionReponse
);
return
visionReponse
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment