// What the orchestrator is told while the earnings calls view is focused: the two things it shows, // how state drives each, and what output holds. export const CALLS_INSTRUCTIONS = [ 'Earnings calls from EarningsCall.biz in one panel: a company’s call transcript, or the calendar of calls held on a day. A calendar row the user clicks opens that call in the same panel.', 'state.symbol is the ticker. With a symbol the panel shows that company’s call: state.year and state.quarter pick it (the company’s fiscal year and quarter, as output.calls lists them), both or neither; neither is the latest call. To show another company set the whole state, { symbol: "MSFT" }, so the last company’s quarter does not carry over. With no symbol it shows the calendar for state.date (YYYY-MM-DD, today when left out).', 'state.find highlights a word or phrase in the transcript and counts it. Set it to point the user at where something is said; output.matches and output.snippets (paragraph number and text) say what was found.', 'output for a call: company, year, quarter, date, the recent calls, paragraphs, qaParagraph (where the questions start), find, matches, snippets, error. For the calendar: date, count, events, error. The transcript itself is not in output: it is the panel\'s text, read with get panels//text a part at a time, its paragraphs under the numbers the view shows. Quote it from there.', 'Transcripts are plain on this plan: machine transcribed, no speaker names, paragraph breaks inferred. Name a speaker only when the text itself says who is talking. A call not yet published has no transcript.', ].join('\n')