You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Error in POST REST API via custom component in Oracle Digital Assistant

edited May 12, 2025 12:36PM in Digital Assistant & Mobile 1 comment

Summary:

Hi,

We have to POST REST API(including JSON payload) via custom component in Oracle Digital Assistant.

After uploading tgz file in custom component in ODA , variable mapping is not happening with JSON payload in java script.

Kindly help me on the same to proceed  on the ODA bot development. 

Content (please ensure you mask any confidential information):

'use strict';

const fetch = require('node-fetch');

// Hardcoded credentials for Postman Echo
const USERNAME = 'XXXXXX';
const PASSWORD = 'XXXXXXX';

const data =
{
"attribute1": "${fixed_val}",
"attribute2": "${greetings_id}",
"attribute3" : null,
"attribute4" : "${profile.firstName}${profile.lastName}"

};

module.exports = {
metadata: () => ({
name: 'run',
properties: {},
supportedActions: ['success', 'failure'],

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!