如果用户的响应类似于Jun / +821029384759 / aaa@gmail.com
我想将其更改为字符串。 (我想在firebase中输入)
输入“ databaseEntry”。
在以下代码中:databaseEntry在“对象对象”中的结果
const databaseEntry = ?? (string type)
const databaseEntry = context;
const databaseEntry = request;
const databaseEntry = context;
const dialogflowAgentRef = db.collection('dialogflow').doc('agent');
return db.runTransaction(t => {
t.set(dialogflowAgentRef, {entry:databaseEntry});
return Promise.resolve('Write complete');
}).then(doc => {
agent.add(`Wrote "${databaseEntry}" to the Firestore database.`);
}).catch(err => {
console.log(`Error writing to Firestore: ${err}`);
agent.add(`Failed to write "${databaseEntry}" to the Firestore database.`);
});
databaseEntry = Jun / +821029384759 / aaa@gmail.com