Create an IBM Cloud Function action
Introduction
IBM Cloud Functions is used as an intermediate service between the dialog’s webhook in IBM Watson Assistant (which can make a POST request to a single URL only) and the various REST APIs in SPM.
Use the proceeding steps to create an IBM Cloud Function action.
You can edit the actions to include the sample code that is provided and test the retrieval of verifications for a specific case or person. For information about how to invoke your action or to view other troubleshooting issues, see Troubleshooting.
Create an action
The following steps outline how to create an action:
- Go to the IBM Cloud catalog.
- Search for
Functions. - Click the
Functionsservice. - Click
Start Creating>Action. - Type your Action name, for example
caseworker. - If you have not already created a package named
curam-rest, clickCreate Package, entercuram-restand clickCreate. Otherwise selectcuram-restfrom the `Enclosing package’ dropdown. - Click
Node.jsas the runtime language. - Click
Createto create your action. You can now start editing the action. - To create an action for
verificationsandpersonrepeat the steps above.