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
Functions
service. - 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-rest
and clickCreate
. Otherwise selectcuram-rest
from the `Enclosing package’ dropdown. - Click
Node.js
as the runtime language. - Click
Create
to create your action. You can now start editing the action. - To create an action for
verifications
andperson
repeat the steps above.