We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AiondaDotCom/mcp-salesforce'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
demo-additional-questions.jsβ’3.56 KiB
#!/usr/bin/env node
/**
* Demo: How to use additional questions after interview completion
* This demonstrates the resolved functionality for the user
*/
import { handleSalesforceLearnContext } from './src/tools/learn-context.js';
async function demoAdditionalQuestions() {
console.log('π― DEMO: Additional Questions After Interview Completion');
console.log('=======================================================\n');
console.log('This demo shows how you can now answer additional questions');
console.log('even after your basic interview is marked as "completed".\n');
try {
// Show current status
console.log('π Current Status:');
console.log('------------------');
const status = await handleSalesforceLearnContext({ action: 'show_context' });
const statusText = status.content[0].text;
// Extract key information
const statusMatch = statusText.match(/Interview Status[\s\S]*?Status.*?(β Completed|π In Progress)/);
const dataModelMatch = statusText.match(/Data Model Context.*?(β Available|β Not captured)/);
console.log(`Interview Status: ${statusMatch ? statusMatch[1] : 'Unknown'}`);
console.log(`Data Model: ${dataModelMatch ? dataModelMatch[1] : 'Unknown'}`);
console.log('');
// Demo available additional questions
console.log('π‘ Available Additional Questions:');
console.log('----------------------------------');
console.log('β data_model_details - Describe your Salesforce data model');
console.log('β custom_objects_purpose - Purpose of your custom objects');
console.log('β business_processes - Main business processes in Salesforce');
console.log('β integration_systems - External system integrations');
console.log('β reporting_needs - Important reports and dashboards');
console.log('');
// Demo usage
console.log('π Example Usage:');
console.log('-----------------');
console.log('You can now answer any of these questions like this:');
console.log('');
console.log('```json');
console.log('{');
console.log(' "action": "answer_question",');
console.log(' "question_id": "data_model_details",');
console.log(' "answer": "Our Salesforce data model includes..."');
console.log('}');
console.log('```');
console.log('');
// Show suggest_questions still works
console.log('π§ Intelligent Questions Still Available:');
console.log('-----------------------------------------');
console.log('The suggest_questions feature continues to work and will');
console.log('generate smart questions based on your Salesforce installation.');
console.log('');
console.log('Usage: { "action": "suggest_questions" }');
console.log('');
// Key benefits
console.log('π Key Benefits:');
console.log('----------------');
console.log('β No need to restart interview to add more information');
console.log('β Can answer questions at any time after basic interview');
console.log('β Basic interview questions remain protected');
console.log('β Clear guidance on what questions are available');
console.log('β All information is stored and persists across sessions');
console.log('');
console.log('π Your Interview Status: READY FOR ADDITIONAL QUESTIONS!');
console.log('');
console.log('Feel free to answer any of the additional questions above');
console.log('to help me understand your Salesforce setup better.');
} catch (error) {
console.error('β Demo failed:', error);
}
}
// Run the demo
demoAdditionalQuestions().catch(console.error);