manychat-ai-agent 0.23.0 → 0.23.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/CHANGELOG.md +15 -0
- package/dist/agent/prompt.js +10 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.23.1](https://github.com/pedronastasi/manychat-ai-agent/compare/v0.23.0...v0.23.1) (2026-10-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* continue an offering already selected in conversation ([e9d8353](https://github.com/pedronastasi/manychat-ai-agent/commit/e9d8353ce2c1dc134810f9632c09447a46970faf))
|
|
9
|
+
* continue an offering already selected in conversation ([d9b6aa4](https://github.com/pedronastasi/manychat-ai-agent/commit/d9b6aa4e5f9812538efcdda44e624bede5ef180f))
|
|
10
|
+
* **deps:** update patch dependencies ([#208](https://github.com/pedronastasi/manychat-ai-agent/issues/208)) ([d9ba610](https://github.com/pedronastasi/manychat-ai-agent/commit/d9ba6101326ba47f231a58de295e488c4189fc9a))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Specs and Docs
|
|
14
|
+
|
|
15
|
+
* specify complete conversation evals ([d8a0a48](https://github.com/pedronastasi/manychat-ai-agent/commit/d8a0a48fe3a8971424dc53ed83ce7de29204bc09))
|
|
16
|
+
* specify complete conversation evals ([81c4f83](https://github.com/pedronastasi/manychat-ai-agent/commit/81c4f83d6ea728ee85d41d19b8e07e3ac3a105f7))
|
|
17
|
+
|
|
3
18
|
## [0.23.0](https://github.com/pedronastasi/manychat-ai-agent/compare/v0.22.0...v0.23.0) (2026-10-08)
|
|
4
19
|
|
|
5
20
|
|
package/dist/agent/prompt.js
CHANGED
|
@@ -307,8 +307,13 @@ function offeringsSection(tools) {
|
|
|
307
307
|
`The field ${offering.id} records the offering this contact is buying, one of: ${offering.values.join(', ')}.`,
|
|
308
308
|
'Record it with set_field as soon as the contact chooses an offering or the fit is clear.',
|
|
309
309
|
'A flow listed with an offering is accepted only once that is the contact’s offering;',
|
|
310
|
-
'setting the offering earlier in the same turn is enough.
|
|
311
|
-
'
|
|
310
|
+
'setting the offering earlier in the same turn is enough. An absent recorded offering',
|
|
311
|
+
'does not mean the contact has not chosen. Check the current message and conversation',
|
|
312
|
+
'history, including an offering name or catalog page they supplied and your earlier',
|
|
313
|
+
'acknowledgment of that choice. If one offering is already clear, record it and continue',
|
|
314
|
+
'without asking them to choose or confirm it again. A short answer to a qualification',
|
|
315
|
+
'question does not reset that choice. Ask which offering only when it is still unknown,',
|
|
316
|
+
'before sending offering-specific content: one question, not a list of every offering.',
|
|
312
317
|
...(funnelField(tools)
|
|
313
318
|
? [
|
|
314
319
|
'The offering may change until the stage is offered. From offered on it is locked: a',
|
|
@@ -348,8 +353,9 @@ export function intentNotice(intent, advertOffering) {
|
|
|
348
353
|
* travels with the turn's message like the funnel note, outside the fence.
|
|
349
354
|
*/
|
|
350
355
|
export function offeringNotice(offering, changedFrom) {
|
|
351
|
-
if (offering === undefined)
|
|
352
|
-
return 'OFFERING: No offering is recorded for this contact yet.';
|
|
356
|
+
if (offering === undefined) {
|
|
357
|
+
return 'OFFERING: No offering is recorded for this contact yet. This is missing saved state, not proof of an unknown choice. If the message or history already identifies an offering, record it and continue without asking again.';
|
|
358
|
+
}
|
|
353
359
|
if (changedFrom !== undefined) {
|
|
354
360
|
return `OFFERING: This contact's offering changed from ${changedFrom} to ${offering} since you last saw it. Confirm which offering they want before continuing.`;
|
|
355
361
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "manychat-ai-agent",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "A provider-agnostic conversational AI agent gateway that bridges no-code chat platforms to any LLM.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@ai-sdk/anthropic": "^4.0.53",
|
|
72
72
|
"@ai-sdk/google": "^4.0.69",
|
|
73
73
|
"@ai-sdk/openai": "^4.0.66",
|
|
74
|
-
"@ai-sdk/provider": "4.0.
|
|
74
|
+
"@ai-sdk/provider": "4.0.26",
|
|
75
75
|
"@fastify/helmet": "^13.1.1",
|
|
76
76
|
"@fastify/rate-limit": "^11.2.0",
|
|
77
77
|
"@fastify/swagger": "^9.8.1",
|