@hazeljs/messaging 0.7.9 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -93,12 +93,12 @@ MessagingModule.forRoot({
|
|
|
93
93
|
|
|
94
94
|
## Webhook URLs
|
|
95
95
|
|
|
96
|
-
| Channel
|
|
97
|
-
|
|
98
|
-
| Telegram
|
|
99
|
-
| WhatsApp
|
|
100
|
-
| WhatsApp
|
|
101
|
-
| Viber
|
|
96
|
+
| Channel | Method | URL |
|
|
97
|
+
| -------- | ------ | ------------------------------------------------ |
|
|
98
|
+
| Telegram | POST | `/api/messaging/webhook/telegram` |
|
|
99
|
+
| WhatsApp | GET | `/api/messaging/webhook/whatsapp` (verification) |
|
|
100
|
+
| WhatsApp | POST | `/api/messaging/webhook/whatsapp` |
|
|
101
|
+
| Viber | POST | `/api/messaging/webhook/viber` |
|
|
102
102
|
|
|
103
103
|
## Configuration
|
|
104
104
|
|
|
@@ -168,6 +168,7 @@ MessagingModule.forRoot({
|
|
|
168
168
|
```
|
|
169
169
|
|
|
170
170
|
The agent handler receives `{ message, sessionId, conversationTurns }` and can:
|
|
171
|
+
|
|
171
172
|
- Call `AgentRuntime.execute()` with tools and RAG
|
|
172
173
|
- Use external services (orders, inventory, tickets)
|
|
173
174
|
- Return `string` or `{ response, sources }`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazeljs/messaging",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Multichannel messaging for HazelJS - WhatsApp, Telegram, Viber with LLM-powered bot responses",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"url": "https://github.com/hazel-js/hazeljs.git",
|
|
85
85
|
"directory": "packages/messaging"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "8b7685d1250c4622f25d83992f58e13a59bb3dba"
|
|
88
88
|
}
|