fix(WhatsappDirectLine): update sendFileToDevice to default isViewOnce to true and clean up header example
Some checks are pending
GBCI / build (push) Waiting to run
Some checks are pending
GBCI / build (push) Waiting to run
This commit is contained in:
parent
0d5a4aee3c
commit
cbdf3664bb
1 changed files with 1 additions and 1 deletions
|
@ -650,7 +650,7 @@ export class GBConversationalService {
|
|||
|
||||
if (text.endsWith('-zap')) {
|
||||
let packagePath = GBUtil.getGBAIPath(min.botId, `gbkb`);
|
||||
const localName = path.join('work', packagePath, 'articles', text);
|
||||
const localName = path.join('work', packagePath, 'articles', text + '.docx');
|
||||
let loader = new DocxLoader(localName);
|
||||
let doc = await loader.load();
|
||||
text = doc[0].pageContent;
|
||||
|
|
Loading…
Add table
Reference in a new issue