Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EASY API: Attach metadata to botpress converse API requests #2072

Closed
smashah opened this issue Aug 28, 2021 · 7 comments
Closed

EASY API: Attach metadata to botpress converse API requests #2072

smashah opened this issue Aug 28, 2021 · 7 comments
Labels
PRIORITY Fast track for BMAC Members only. wontfix This will not be worked on

Comments

@smashah
Copy link
Member

smashah commented Aug 28, 2021

No description provided.

@owa-gh-bot owa-gh-bot bot added the PRIORITY Fast track for BMAC Members only. label Aug 28, 2021
@smashah smashah added the wontfix This will not be worked on label Aug 31, 2021
@smashah
Copy link
Member Author

smashah commented Aug 31, 2021

image

Need to develop a custom botpress module :(

@smashah
Copy link
Member Author

smashah commented Nov 14, 2021

You can append message payloads as metadata for botpress converse api

@smashah
Copy link
Member Author

smashah commented Nov 14, 2021

botpress/botpress#5165

@smashah smashah changed the title EASY API: --stringify-payload-botpress EASY API: Attach metadata to botpress converse API requests Nov 14, 2021
@smashah
Copy link
Member Author

smashah commented Nov 14, 2021

@github-actions run

⚡ Release! ⚡
(async () => {
function exec(cmd) {
  console.log(execSync(cmd).toString());
}
//set the version type
process.env.VERS = "patch"

// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";

exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i -D`);
exec(`npm run release-ci $VERS`);

// types only package
exec('npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN')
exec(`cd ./types-only && npm version $VERS && npm run build && npm publish && cd ..`);
exec(`git commit -a -m 'updated types-only package'`);
exec(`git push --force`);

//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();

    await postComment(result);

//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
  })();

@smashah
Copy link
Member Author

smashah commented Nov 14, 2021

Changelog

🚀 Release 4.23.10 (2021-11-14)

@smashah
Copy link
Member Author

smashah commented Nov 14, 2021

image

You should now be able to parse the whole message via event.payload.metadata

@smashah smashah closed this as completed Nov 14, 2021
@scropion86
Copy link
Contributor

is there a guide on how to config botpress to send outgoing message using open-wa?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PRIORITY Fast track for BMAC Members only. wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants