Skip to content

Fix automation exporter credential handling for Slack and Twilio#104

Merged
TopProjectsCreator merged 1 commit into
mainfrom
codex/fix-code-exporter-to-adhere-to-api-docs/2026-04-19
Apr 19, 2026
Merged

Fix automation exporter credential handling for Slack and Twilio#104
TopProjectsCreator merged 1 commit into
mainfrom
codex/fix-code-exporter-to-adhere-to-api-docs/2026-04-19

Conversation

@TopProjectsCreator
Copy link
Copy Markdown
Owner

Motivation

  • Generated exporter code for automation blocks used generic *_API_KEY assumptions and produced snippets that didn't match provider docs for Slack and Twilio.
  • Align generated Python/Node snippets and environment variable guidance with the official webhook/SMS API patterns so exported pipelines work out-of-the-box.

Description

  • Updated Python generator snippets in AutomationTemplatePane.tsx so Slack uses SLACK_WEBHOOK_URL with requests and Twilio uses TWILIO_ACCOUNT_SID + TWILIO_AUTH_TOKEN with the official messaging call and message/to/from fields.
  • Updated Node.js generator snippets so Slack posts to incoming webhooks using node-fetch (with non-2xx checks) and Twilio authenticates with TWILIO_ACCOUNT_SID + TWILIO_AUTH_TOKEN and uses the expected message parameters.
  • Adjusted the exporter credential discovery/validation logic so needsAuth emits the correct environment variable names and extra env var hints for Slack and Twilio instead of the generic *_API_KEY tokens.

Testing

  • Ran npm run lint which completed successfully (existing unrelated warnings remain in the repo).
  • Ran npm run test -- AutomationTemplatePane which found no matching test files (no unit tests were executed for that filter).

Codex Task

@TopProjectsCreator TopProjectsCreator added the codex This has been or will be assigned to codex for development label Apr 19, 2026 — with ChatGPT Codex Connector
@TopProjectsCreator TopProjectsCreator merged commit 021f43e into main Apr 19, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex This has been or will be assigned to codex for development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant