Connecting to Slack using public HTTP endpoint
Please complete this task after your Z ChatOps server is configured and started.
About this task
If you are using HTTP endpoint to receive Slack events, you must enable interactivity and configure the event request URL and the interactivity request URL in your Slack App.
If the IP address of your Z ChatOps server is public, you can use the Chatbot messaging endpoint
URL
<httpEndpoint.protocol>://<httpEndpoint.hostName>:<httpEndpoint.port><httpEndpoint.basePath>
directly, for example, https://zchatops.cn.ibm.com:5001/bnz/api/v1. Otherwise, you
must configure your own network firewall or use some proxy servers to make sure that your Slack App
of your Slack workspace in public cloud can access the messaging endpoint of Z ChatOps server from
Internet. For example, you can use IBM® Secure Gateway to
create an externally accessible URL for your locally deployed messaging endpoint on your
machine.Note: You can find the values for protocol, hostName,
port, and basePath in the configuration file
ZCHATOPS_HOME/config/chattools/slack.yaml. Where,
- <httpEndpoint.protocol>: the default value is https;
- <httpEndpoint.hostName>: the host name where your Z ChatOps Chatbot server is installed;
- <httpEndpoint.port>: the default value is 5001;
- <httpEndpoint.basePath>: the default value is /bnz/api/v1.

