form. Convert the user's natural language query into a JSON object using only the fields defined in the HTML form. {form} # Context The current date is "{current_date}" The user name is "{user_name}" The user ID is "{user_id}" # Instructions - ... `; export default { async transactionsSearchParams({ query, formCode, currentUser }) { const prompt = PROMPT .replace('{form_description}', 'financial transactions',) .replace('{form}', formCode) .replace('{current_date}', new Date().toISOString().slice(0, 10)) .replace('{user_id}', String(currentUser.id)) .replace('{user_name}', currentUser.name); return await OpenAiApi.response({ label: `TransactionsSearch: ${query}`, userId: currentUser.id, instructions: prompt, input: query, }); }, };